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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1158
RA = 187.712, Dec = 12.3883
tmin = 539481601, tmax = 539740801
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='757761', job_status='RUN', time_executed='2021-09-05 21:40:25.412146', time_epoch_executed='1630903225.41' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/757761

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/757761/ft1_4FGL_J1230.8+1223_daily_bin1158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/757761/ft2_4FGL_J1230.8+1223_daily_bin1158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/757761/ft1_4FGL_J1230.8+1223_daily_bin1158.fits outfile=/scratch/kocevski/757761/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1158.fits ra=187.712 dec=12.3883 rad=12.0 tmin=539481601.0 tmax=539740801.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.20
user 4.90
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/757761/ft1_filtered_4FGL_J1230.8+1223_daily_bin1158.fits" evtable="EVENTS" scfile=/scratch/kocevski/757761/ft2_4FGL_J1230.8+1223_daily_bin1158.fits sctable="SC_DATA" outfile=/scratch/kocevski/757761/ltcube_539481601_539740801_4FGL_J1230.8+1223_daily_bin1158.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/757761/ft2_4FGL_J1230.8+1223_daily_bin1158.fits
.....................!
real 14.64
user 14.16
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/757761/ft1_filtered_4FGL_J1230.8+1223_daily_bin1158.fits evtable="EVENTS" scfile=/scratch/kocevski/757761/ft2_4FGL_J1230.8+1223_daily_bin1158.fits sctable="SC_DATA" expcube=/scratch/kocevski/757761/ltcube_539481601_539740801_4FGL_J1230.8+1223_daily_bin1158.fits outfile=/scratch/kocevski/757761/expmap_539481601_539740801_4FGL_J1230.8+1223_daily_bin1158.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/757761/ltcube_539481601_539740801_4FGL_J1230.8+1223_daily_bin1158.fits
.....................!
real 191.11
user 185.30
sys 4.39

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/757761/ft1_filtered_4FGL_J1230.8+1223_daily_bin1158.fits scfile=/scratch/kocevski/757761/ft2_4FGL_J1230.8+1223_daily_bin1158.fits outfile=/scratch/kocevski/757761/cmap_539481601_539740801_4FGL_J1230.8+1223_daily_bin1158.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/757761/ft1_filtered_4FGL_J1230.8+1223_daily_bin1158.fits scfile=/scratch/kocevski/757761/ft2_4FGL_J1230.8+1223_daily_bin1158.fits outfile=/scratch/kocevski/757761/cmap_HighResolution_539481601_539740801_4FGL_J1230.8+1223_daily_bin1158.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.60
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .20723E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11037E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7888       1.0000         .10000E-03   10000.    
     6 'Prefactor '    63.518       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7206       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3666       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.4574       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .39757       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .97299       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.954       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2303       1.0000         .10000E-03   10000.    
    19 'norm      '    3.1604       1.0000         .10000E-03   10000.    
    20 'Prefactor '    53.612       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.386       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2447       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .85953       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=   4195.081     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     3113 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.693        .10203E-06** at limit **
   2  Prefactor     .10000E-03    591.38        .73066E-06** at limit **
   3  Prefactor     .10000E-03    5.1611        .39517E-06** at limit **
   4  Prefactor     .10006E-03    16.647        .33193E-05** at limit **
   5  Prefactor     3.7883        5.5211        .98596E-07   -.46534E-04
   6  Prefactor     63.578        114.97       -.60589E-05   -.48735E-04
   7  Prefactor     .10000E-03    18.468       -.29780E-08** at limit **
   8  Prefactor     1.7203        4.2170       -.12409E-05   -.14755E-03
   9  Prefactor     2.3660        5.5354        .39847E-05   -.26588E-03
  10  Prefactor     .10000E-03    9.9966        .40283E-07** at limit **
  11  norm          7.4572        4.6758        .14659E-06   -.78680E-04
  12  Prefactor     .10000E-03    11.988       -.78639E-07** at limit **
  13  norm          .39753        .34252        .54287E-08   -.17996E-03
  14  norm          .10000E-03    66.250       -.40932E-07** at limit **
  15  Prefactor     .10000E-03    52.200        .13833E-09** at limit **
  16  norm          .97294        .53732        .29012E-07   -.41759E-04
  17  Prefactor     22.953        20.276        .89343E-07   -.49591E-04
  18  Prefactor     5.2267        89.511        .51377E-07   -.76548E-05
  19  norm          3.1603        1.7663        .70614E-07   -.20751E-04
  20  Prefactor     53.607        53.974        .49402E-06    .21214E-05
  21  Prefactor     .10000E-03    16.097       -.23108E-07** at limit **
  22  Prefactor     19.389        17.027        .26911E-06   -.69890E-05
  23  Prefactor     .10000E-03    9.1196       -.99653E-07** at limit **
  24  Prefactor     .10000E-03    10.345       -.15251E-06** at limit **
  25  Normalizat    1.2449        .26124       -.23016E-05   -.43559E-03
  26  Prefactor     .85941        .21560        .27595E-06   -.39596E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100059
  Prefactor  = 3.78828
  Prefactor  = 63.5784
  Prefactor  = 0.0001
  Prefactor  = 1.72033
  Prefactor  = 2.36595
  Prefactor  = 0.0001
  norm       = 7.45717
  Prefactor  = 0.0001
  norm       = 0.397531
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.972944
  Prefactor  = 22.9532
  Prefactor  = 5.22668
  norm       = 3.16028
  Prefactor  = 53.6069
  Prefactor  = 0.0001
  Prefactor  = 19.3887
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.2449
  Prefactor  = 0.85941
 **********
 **   18 **HESSE 
 **********

 FCN=   4195.081     FROM HESSE     STATUS=OK           454 CALLS     3567 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    596.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.1819        .14390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10006E-03    110.27        .47629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.7883        5.5098        .17716E-03   -1.5319    
   6  Prefactor     63.578        115.84        .50351E-04   -1.4112    
   7  Prefactor     .10000E-03    18.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7203        4.1950        .18252E-03   -1.5446    
   9  Prefactor     2.3660        5.5666        .10231E-02   -1.5400    
  10  Prefactor     .10000E-03    10.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.4572        4.6563        .10098E-03   -1.5162    
  12  Prefactor     .10000E-03    11.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .39753        .33979        .33798E-04   -1.5582    
  14  norm          .10000E-03    66.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    52.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .97294        .53099        .32475E-04   -1.5511    
  17  Prefactor     22.953        20.058        .83606E-04   -1.4749    
  18  Prefactor     5.2267        87.402        .17576E-03   -1.5251    
  19  norm          3.1603        1.7606        .60611E-04   -1.5352    
  20  Prefactor     53.607        53.939        .54779E-04   -1.4242    
  21  Prefactor     .10000E-03    16.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.389        17.047        .90966E-04   -1.4827    
  23  Prefactor     .10000E-03    9.1690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2449        .30882        .26935E-03   -.85226    
  26  Prefactor     .85941        .25416        .27094E-03   -.97574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03479e-09
Minuit parameter uncertainties:
  1  0.00013904
  2  0.00223715
  3  5.03478e-05
  4  0.0051085
  5  5.51053
  6  116.253
  7  2.08222e-06
  8  4.19574
  9  5.56784
  10  4.37831e-05
  11  4.65648
  12  0.000114768
  13  0.339794
  14  6.20146e-05
  15  1.96034e-05
  16  0.530989
  17  20.0642
  18  42.8201
  19  1.76068
  20  53.9885
  21  7.05688e-06
  22  17.0514
  23  1.18614e-05
  24  7.46326e-05
  25  0.309275
  26  0.254512
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  2.295e+01  2.006e+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:  8.594e-01  2.545e-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.245e+00  3.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.20
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 6.26e-08 +/- 5.47e-08
Energy Flux (Fixed Index): 3.78e-05 +/- 3.30e-05

TS (Fixed Index): 3.20
Ra Dec: 187.712 12.388
Photon Flux Upper Limit: 1.74e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.31e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/757761/likelihoodResults_539481601_539740801_4FGL_J1230.8+1223_daily_bin1158.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) = 4194.52665455
delta logL = 0.553895470929

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4194.51947626
delta logL = 0.561073764154

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.794       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6904       1.0000          .0000       10.000    
     3 'Normalizat'    1.1914       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88701       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4194.519     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      292 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.796        16.481        .11665E-03   -.11150E-03
   2  Index         2.6904        .73053        .40371E-02   -.16547E-04
   3  Normalizat    1.1917        .30190        .27426E-03    .38248E-03
   4  Prefactor     .88659        .25517        .26703E-03    .51478E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.7965
  Index      = 2.69037
  Normalizat = 1.19173
  Prefactor  = 0.88659
 **********
 **   18 **HESSE 
 **********

 FCN=   4194.519     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.796        14.422        .46659E-05   -1.5021    
   2  Index         2.6904        .63931        .16148E-03   -.48017    
   3  Normalizat    1.1917        .30125        .54851E-04   -.86859    
   4  Prefactor     .88659        .25474        .53406E-04   -.96611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36264e-10
Minuit parameter uncertainties:
  1  14.4258
  2  0.641544
  3  0.301694
  4  0.255086
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/757761': 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) = 4194.51947442
delta logL = 0.56107560024

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.180e+01  1.443e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.690e+00  6.415e-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:  8.866e-01  2.551e-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.192e+00  3.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.32
Ra Dec: 187.712 12.388
Photon Index (Free Index): 2.69 +/- 0.64
Photon Flux (Free Index): 1.15e-07 +/- 8.42e-08
Energy Flux (Free Index): 2.79e-05 +/- 1.86e-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/757761/cmap_HighResolution_539481601_539740801_4FGL_J1230.8+1223_daily_bin1158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', comment='SUCCESS', photon_flux='6.26e-08', energy_flux2='2.79e-05', photon_flux_error='5.47e-08', dlogl='5.61e-01', energy_flux='3.78e-05', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-09-05 21:52:02.836627', photon_index_error2='0.64', photon_index2='2.69', ts='3.20', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.74e-07', energy_flux_error2='1.86e-05', EG='1.24', time_epoch_completed='1630903922.84', return_code='0', job_id='757761', GAL2='0.89', EG2='1.19', return_code2='0', energy_flux_error='3.30e-05', photon_flux_error2='8.42e-08', ts2='4.32', photon_index='2.06' WHERE bin_id='1158' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:52:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 757761: <4FGL_J1230.8+1223_daily_bin1158> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1158 187.712 12.3883 539481601 539740801 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 :                                   606.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            973 sec.

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

