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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1615
RA = 187.712, Dec = 12.3883
tmin = 657936001, tmax = 658195201
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='333605', job_status='RUN', time_executed='2021-12-07 23:18:12.625089', time_epoch_executed='1638947892.63' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1615'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/333605

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/333605/ft1_4FGL_J1230.8+1223_daily_bin1615.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/333605/ft2_4FGL_J1230.8+1223_daily_bin1615.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/333605/ft1_4FGL_J1230.8+1223_daily_bin1615.fits outfile=/scratch/kocevski/333605/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1615.fits ra=187.712 dec=12.3883 rad=12.0 tmin=657936001.0 tmax=658195201.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.14
user 3.89
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/333605/ft2_4FGL_J1230.8+1223_daily_bin1615.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/333605/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1615.fits evtable="EVENTS" outfile="/scratch/kocevski/333605/ft1_filtered_4FGL_J1230.8+1223_daily_bin1615.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/333605/ft1_filtered_4FGL_J1230.8+1223_daily_bin1615.fits" evtable="EVENTS" scfile=/scratch/kocevski/333605/ft2_4FGL_J1230.8+1223_daily_bin1615.fits sctable="SC_DATA" outfile=/scratch/kocevski/333605/ltcube_657936001_658195201_4FGL_J1230.8+1223_daily_bin1615.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/333605/ft2_4FGL_J1230.8+1223_daily_bin1615.fits
.....................!
real 14.70
user 14.32
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/333605/ft1_filtered_4FGL_J1230.8+1223_daily_bin1615.fits evtable="EVENTS" scfile=/scratch/kocevski/333605/ft2_4FGL_J1230.8+1223_daily_bin1615.fits sctable="SC_DATA" expcube=/scratch/kocevski/333605/ltcube_657936001_658195201_4FGL_J1230.8+1223_daily_bin1615.fits outfile=/scratch/kocevski/333605/expmap_657936001_658195201_4FGL_J1230.8+1223_daily_bin1615.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/333605/ltcube_657936001_658195201_4FGL_J1230.8+1223_daily_bin1615.fits
.....................!
real 192.38
user 186.75
sys 5.26

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/333605/ft1_filtered_4FGL_J1230.8+1223_daily_bin1615.fits scfile=/scratch/kocevski/333605/ft2_4FGL_J1230.8+1223_daily_bin1615.fits outfile=/scratch/kocevski/333605/cmap_657936001_658195201_4FGL_J1230.8+1223_daily_bin1615.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/333605/ft1_filtered_4FGL_J1230.8+1223_daily_bin1615.fits scfile=/scratch/kocevski/333605/ft2_4FGL_J1230.8+1223_daily_bin1615.fits outfile=/scratch/kocevski/333605/cmap_HighResolution_657936001_658195201_4FGL_J1230.8+1223_daily_bin1615.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5133       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9631       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1027       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.795       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3925       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7739       1.0000         .10000E-03   10000.    
    11 'norm      '    .97474       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.8611       1.0000         .10000E-03   10000.    
    16 'norm      '    1.3117       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.6850       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12841E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.3281       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.967       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.2330       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .31395E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1786       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .97052       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=   5835.375     FROM MIGRAD    STATUS=CONVERGED    634 CALLS     3686 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3299       -.19888E-08** at limit **
   2  Prefactor     5.5399        362.82        .26671E-05    .17155E-04
   3  Prefactor     4.9619        7.1575        .33953E-07   -.11974E-03
   4  Prefactor     .10000E-03    16.120       -.39151E-07** at limit **
   5  Prefactor     5.1019        4.2457        .49554E-07   -.53130E-04
   6  Prefactor     .10000E-03    65.264       -.81519E-07** at limit **
   7  Prefactor     30.796        53.328       -.19933E-06   -.14988E-04
   8  Prefactor     2.3928        2.9135        .18636E-06   -.95972E-04
   9  Prefactor     .10000E-03    .82523       -.15963E-07** at limit **
  10  Prefactor     2.7632        77.208       -.13532E-05   -.99148E-05
  11  norm          .97680        4.8578        .13858E-05   -.17044E-03
  12  Prefactor     .10000E-03    11.214       -.26469E-06** at limit **
  13  norm          .10000E-03    .11203        .81420E-08** at limit **
  14  norm          .10000E-03    20.485       -.17233E-06** at limit **
  15  Prefactor     6.7876        665.94       -.10276E-04   -.27591E-04
  16  norm          1.3113        .72798       -.81614E-07   -.70983E-03
  17  Prefactor     7.6899        10.703        .32953E-05    .60259E-05
  18  Prefactor     .10000E-03    29.761       -.42445E-05** at limit **
  19  norm          2.3278        1.7948        .12100E-07   -.16255E-03
  20  Prefactor     15.980        46.040        .46416E-06    .21903E-04
  21  Prefactor     .10000E-03    19.067        .48598E-07** at limit **
  22  Prefactor     .10000E-03    4.1086        .16560E-07** at limit **
  23  Prefactor     7.2344        9.7311        .14308E-06   -.56009E-04
  24  Prefactor     .10024E-03    8.6372        .75780E-06** at limit **
  25  Normalizat    1.1787        .20038       -.44541E-06    .90441E-04
  26  Prefactor     .97045        .17273        .15070E-06    .25780E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.53993
  Prefactor  = 4.96191
  Prefactor  = 0.0001
  Prefactor  = 5.10194
  Prefactor  = 0.0001
  Prefactor  = 30.796
  Prefactor  = 2.39283
  Prefactor  = 0.0001
  Prefactor  = 2.76317
  norm       = 0.976799
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.78757
  norm       = 1.3113
  Prefactor  = 7.68989
  Prefactor  = 0.000100004
  norm       = 2.32784
  Prefactor  = 15.9802
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.23439
  Prefactor  = 0.000100239
  Normalizat = 1.17867
  Prefactor  = 0.970445
 **********
 **   18 **HESSE 
 **********

 FCN=   5835.375     FROM HESSE     STATUS=OK           466 CALLS     4152 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3353        .17223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.5399        359.59        .17111E-03   -1.5237    
   3  Prefactor     4.9619        7.1553        .18052E-03   -1.5262    
   4  Prefactor     .10000E-03    16.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.1019        4.2288        .13498E-03   -1.5256    
   6  Prefactor     .10000E-03    65.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.796        53.009        .72202E-04   -1.4598    
   8  Prefactor     2.3928        2.8845        .13285E-03   -1.5399    
   9  Prefactor     .10000E-03    .82981        .67669E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7632        73.468        .24435E-03   -1.5375    
  11  norm          .97680        4.2053        .25658E-03   -1.5510    
  12  Prefactor     .10000E-03    11.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .18788        .49228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    20.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.7876        682.09        .15317E-03   -1.5187    
  16  norm          1.3113        .69109        .40740E-04   -1.5479    
  17  Prefactor     7.6899        10.770        .72327E-03   -1.5153    
  18  Prefactor     .10000E-03    207.77        .73207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.3278        1.7771        .84175E-04   -1.5403    
  20  Prefactor     15.980        45.965        .10023E-03   -1.4908    
  21  Prefactor     .10000E-03    19.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.1511        .15120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.2344        9.6207        .14914E-03   -1.5170    
  24  Prefactor     .10024E-03    95.940        .41398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1787        .22850        .24992E-03   -.87264    
  26  Prefactor     .97045        .20149        .25027E-03   -.93721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79792e-09
Minuit parameter uncertainties:
  1  2.78317e-07
  2  89.8349
  3  7.15653
  4  3.26548e-06
  5  4.22904
  6  1.45865e-05
  7  53.0902
  8  2.88462
  9  5.28182e-07
  10  28.5344
  11  4.05377
  12  2.6103e-05
  13  9.32976e-10
  14  3.40349e-05
  15  137.728
  16  0.691096
  17  10.7727
  18  0.00187849
  19  1.77717
  20  46.0671
  21  1.94802e-05
  22  3.39504e-08
  23  9.62275
  24  0.0095925
  25  0.228698
  26  0.201646
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  7.690e+00  1.077e+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:  9.704e-01  2.016e-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.179e+00  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/333605/likelihoodResults_657936001_658195201_4FGL_J1230.8+1223_daily_bin1615.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) = 5834.1090335
delta logL = 1.26561044917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5834.0847424
delta logL = 1.28990155313

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8956       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3640       1.0000          .0000       10.000    
     3 'Normalizat'    1.1072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0041       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=   5834.085     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      289 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8957        21.035        .75537E-02    .59232E-03
   2  Index         3.3641        2.3636        .10106        .16051E-03
   3  Normalizat    1.1072        .60909E-01    .58001E-01    .92527E-05
   4  Prefactor     1.0041        .54207E-01    .44397E-01    .10812E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.89566
  Index      = 3.36406
  Normalizat = 1.10724
  Prefactor  = 1.00407
 **********
 **   18 **HESSE 
 **********

 FCN=   5834.085     FROM HESSE     STATUS=OK            33 CALLS      322 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8957        20.597        .65910E-04   -1.5433    
   2  Index         3.3641        2.7777        .37575E-02   -.33333    
   3  Normalizat    1.1072        .23135        .25650E-03   -.89520    
   4  Prefactor     1.0041        .20889        .24627E-03   -.92594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57569e-07
Minuit parameter uncertainties:
  1  12.5025
  2  2.96928
  3  0.231567
  4  0.20906
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/333605': 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) = 5834.08474213
delta logL = 1.28990182067

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.896e+00  1.250e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  3.364e+00  2.969e+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.004e+00  2.091e-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.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.36
Ra Dec: 187.712 12.388
Photon Index (Free Index): 3.36 +/- 2.97
Photon Flux (Free Index): 8.47e-08 +/- 6.38e-08
Energy Flux (Free Index): 1.47e-05 +/- 1.27e-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/333605/cmap_HighResolution_657936001_658195201_4FGL_J1230.8+1223_daily_bin1615.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.93e-03', comment='SUCCESS', energy_flux2='1.47e-05', dlogl='1.29e+00', photon_flux2='8.47e-08', job_status='DONE', time_completed='2021-12-07 23:30:49.663204', photon_index_error2='2.97', photon_index2='3.36', ts='0.70', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='9.19e-08', energy_flux_error2='1.27e-05', EG='1.18', time_epoch_completed='1638948649.66', return_code='0', job_id='333605', GAL2='1.00', EG2='1.11', return_code2='0', photon_flux_error2='6.38e-08', ts2='3.36', photon_index='2.06' WHERE bin_id='1615' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 23:30:49 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 333605: <4FGL_J1230.8+1223_daily_bin1615> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1615> 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) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 23:15:38 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:38 2021
Terminated at Tue Dec  7 23:30:50 2021
Results reported at Tue Dec  7 23:30:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1615 187.712 12.3883 657936001 658195201 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 :                                   756.00 sec.
    Max Memory :                                 1167 MB
    Average Memory :                             256.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            933 sec.

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

