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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1019
RA = 187.712, Dec = 12.3883
tmin = 503452801, tmax = 503712001
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='757549', job_status='RUN', time_executed='2021-09-05 21:40:00.292963', time_epoch_executed='1630903200.29' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1019'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/757549

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/757549/ft1_4FGL_J1230.8+1223_daily_bin1019.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/757549/ft2_4FGL_J1230.8+1223_daily_bin1019.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/757549/ft1_4FGL_J1230.8+1223_daily_bin1019.fits outfile=/scratch/kocevski/757549/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1019.fits ra=187.712 dec=12.3883 rad=12.0 tmin=503452801.0 tmax=503712001.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 8.11
user 7.40
sys 0.32

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/757549/ft2_4FGL_J1230.8+1223_daily_bin1019.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/757549/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1019.fits evtable="EVENTS" outfile="/scratch/kocevski/757549/ft1_filtered_4FGL_J1230.8+1223_daily_bin1019.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 1.65
user 0.37
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/757549/ft1_filtered_4FGL_J1230.8+1223_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/757549/ft2_4FGL_J1230.8+1223_daily_bin1019.fits sctable="SC_DATA" expcube=/scratch/kocevski/757549/ltcube_503452801_503712001_4FGL_J1230.8+1223_daily_bin1019.fits outfile=/scratch/kocevski/757549/expmap_503452801_503712001_4FGL_J1230.8+1223_daily_bin1019.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/757549/ltcube_503452801_503712001_4FGL_J1230.8+1223_daily_bin1019.fits
.....................!
real 192.67
user 186.69
sys 4.98

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/757549/ft1_filtered_4FGL_J1230.8+1223_daily_bin1019.fits scfile=/scratch/kocevski/757549/ft2_4FGL_J1230.8+1223_daily_bin1019.fits outfile=/scratch/kocevski/757549/cmap_503452801_503712001_4FGL_J1230.8+1223_daily_bin1019.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/757549/ft1_filtered_4FGL_J1230.8+1223_daily_bin1019.fits scfile=/scratch/kocevski/757549/ft2_4FGL_J1230.8+1223_daily_bin1019.fits outfile=/scratch/kocevski/757549/cmap_HighResolution_503452801_503712001_4FGL_J1230.8+1223_daily_bin1019.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=187.712 yref=12.3883 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    201.07       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2520       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12797E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.8085       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.901       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.381       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .15399E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .15583       1.0000         .10000E-03   10000.    
    14 'norm      '    37.326       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.1000       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.5235       1.0000         .10000E-03   10000.    
    20 'Prefactor '    60.899       1.0000         .10000E-03   10000.    
    21 'Prefactor '    75.431       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.342       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10613E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .76372       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3415       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=   4404.826     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     3171 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.813       -.75135E-07** at limit **
   2  Prefactor     201.22        167.66        .80120E-06    .72517E-04
   3  Prefactor     6.2476        15.837        .71669E-05    .32846E-04
   4  Prefactor     .10001E-03    85.280        .25882E-04** at limit **
   5  Prefactor     4.8080        5.5874        .18873E-06    .61906E-04
   6  Prefactor     19.151        401.13       -.13284E-04   -.37722E-05
   7  Prefactor     .10000E-03    26.545        .82065E-06** at limit **
   8  Prefactor     12.388        5.5124        .33762E-06    .61004E-04
   9  Prefactor     .10000E-03    5.8296       -.41801E-06** at limit **
  10  Prefactor     .10000E-03    20.753        .72330E-07** at limit **
  11  norm          .10000E-03    3.3049       -.75168E-06** at limit **
  12  Prefactor     .10000E-03    37.015       -.44514E-06** at limit **
  13  norm          .15573        .29489       -.13755E-06   -.12161E-03
  14  norm          37.312        48.549        .65260E-06    .63486E-04
  15  Prefactor     .10001E-03    140.07       -.16798E-05** at limit **
  16  norm          3.0997        .98388        .11256E-06    .93868E-03
  17  Prefactor     .10000E-03    5.3428       -.88796E-07** at limit **
  18  Prefactor     .10000E-03    20.740       -.36855E-06** at limit **
  19  norm          1.5230        1.9128       -.35690E-07    .17136E-03
  20  Prefactor     60.903        67.685       -.15851E-07    .13106E-04
  21  Prefactor     75.387        89.166       -.16145E-05   -.36201E-04
  22  Prefactor     .10000E-03    7.2447       -.57649E-06** at limit **
  23  Prefactor     27.368        27.222        .19392E-05    .45900E-04
  24  Prefactor     .10000E-03    100.14        .80518E-06** at limit **
  25  Normalizat    .76288        .29776       -.83580E-05    .12627E-03
  26  Prefactor     1.3422        .24262        .58909E-05   -.16658E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 201.215
  Prefactor  = 6.24755
  Prefactor  = 0.000100008
  Prefactor  = 4.808
  Prefactor  = 19.1509
  Prefactor  = 0.0001
  Prefactor  = 12.3877
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.155727
  norm       = 37.3116
  Prefactor  = 0.000100005
  norm       = 3.09973
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.52301
  Prefactor  = 60.9035
  Prefactor  = 75.3867
  Prefactor  = 0.0001
  Prefactor  = 27.3682
  Prefactor  = 0.0001
  Normalizat = 0.762875
  Prefactor  = 1.34222
 **********
 **   18 **HESSE 
 **********

 FCN=   4404.826     FROM HESSE     STATUS=OK           452 CALLS     3623 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     201.22        167.87        .14248E-03   -1.2861    
   3  Prefactor     6.2476        15.924        .80271E-03   -1.5208    
   4  Prefactor     .10001E-03    86.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.8080        5.5723        .15869E-03   -1.5269    
   6  Prefactor     19.151        402.17        .92127E-04   -1.4832    
   7  Prefactor     .10000E-03    26.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.388        5.4718        .94302E-04   -1.5004    
   9  Prefactor     .10000E-03    6.0258        .31077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.3285        .22492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    37.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .15573        .27855        .45655E-03   -1.5629    
  14  norm          37.312        47.599        .65600E-04   -1.4486    
  15  Prefactor     .10001E-03    140.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.0997        .98047        .34477E-04   -1.5356    
  17  Prefactor     .10000E-03    5.3484        .14983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.5230        1.8862        .97683E-04   -1.5461    
  20  Prefactor     60.903        67.630        .51416E-04   -1.4146    
  21  Prefactor     75.387        89.161        .23116E-03   -1.3969    
  22  Prefactor     .10000E-03    7.2923        .17444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     27.368        27.138        .76615E-04   -1.4661    
  24  Prefactor     .10000E-03    103.17        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .76288        .33110        .34701E-03   -1.0146    
  26  Prefactor     1.3422        .27345        .24272E-03   -.82060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66596e-09
Minuit parameter uncertainties:
  1  1.02327e-05
  2  168.274
  3  15.9343
  4  0.00170751
  5  5.5729
  6  176.894
  7  0.000171543
  8  5.47199
  9  1.75172e-05
  10  2.20442e-05
  11  8.58359e-05
  12  0.000255905
  13  0.278553
  14  47.6474
  15  0.00173069
  16  0.980474
  17  2.96178e-06
  18  3.36966e-05
  19  1.88631
  20  67.7153
  21  89.3195
  22  3.87157e-06
  23  27.1501
  24  0.000209175
  25  0.331971
  26  0.273742
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.342e+00  2.737e-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:  7.629e-01  3.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/757549/likelihoodResults_503452801_503712001_4FGL_J1230.8+1223_daily_bin1019.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): 102
logL (Free Index) = 4404.82672568
delta logL = -0.000877209556165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4404.82584842
delta logL = 5.65851223655e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0417       1.0000          .0000       10.000    
     3 'Normalizat'    .76284       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3423       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=   4404.826     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      244 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10057E-03    53.445        .15126E-02** at limit **
   2  Index         2.0047        6.1461        .50000        .19658E-04
   3  Normalizat    .76287        .19800E-01    .34704E-03    .12481E-04
   4  Prefactor     1.3422        .17934E-01    .24272E-03   -.18221E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100573
  Index      = 2.0047
  Normalizat = 0.762869
  Prefactor  = 1.34222
 **********
 **   18 **HESSE 
 **********

 FCN=   4404.826     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10057E-03    230.51        .30252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0047        7.2316        .50000       -.64233    
   3  Normalizat    .76287        .42807E-01    .13882E-04   -1.0146    
   4  Prefactor     1.3422        .38772E-01    .48543E-04   -.82060    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.39991e-08
Minuit parameter uncertainties:
  1  0.0230683
  2  438.832
  3  0.0428084
  4  0.0387731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/757549': 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): 102
logL (Free Index) = 4404.82584824
delta logL = 2.34408616961e-07

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.006e-04  2.307e-02  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.005e+00  4.388e+02  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.342e+00  3.877e-02  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:  7.629e-01  4.281e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/757549/cmap_HighResolution_503452801_503712001_4FGL_J1230.8+1223_daily_bin1019.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.49e-03', job_status='DONE', photon_flux_upper_limit='7.28e-08', time_completed='2021-09-05 21:52:05.718542', job_id='757549', GAL2='1.34', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1630903925.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='2.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1019' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:52:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 757549: <4FGL_J1230.8+1223_daily_bin1019> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1019> 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) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:36:22 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:22 2021
Terminated at Sun Sep  5 21:52:06 2021
Results reported at Sun Sep  5 21:52:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1019 187.712 12.3883 503452801 503712001 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 :                                   627.58 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             254.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            992 sec.

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

