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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1125
RA = 187.712, Dec = 12.3883
tmin = 530928001, tmax = 531187201
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='757711', job_status='RUN', time_executed='2021-09-05 21:39:10.362420', time_epoch_executed='1630903150.36' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/757711

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/757711/ft1_4FGL_J1230.8+1223_daily_bin1125.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/757711/ft2_4FGL_J1230.8+1223_daily_bin1125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/757711/ft1_4FGL_J1230.8+1223_daily_bin1125.fits outfile=/scratch/kocevski/757711/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1125.fits ra=187.712 dec=12.3883 rad=12.0 tmin=530928001.0 tmax=531187201.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 3.74
user 3.51
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/757711/ft2_4FGL_J1230.8+1223_daily_bin1125.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/757711/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1125.fits evtable="EVENTS" outfile="/scratch/kocevski/757711/ft1_filtered_4FGL_J1230.8+1223_daily_bin1125.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/757711/ft1_filtered_4FGL_J1230.8+1223_daily_bin1125.fits" evtable="EVENTS" scfile=/scratch/kocevski/757711/ft2_4FGL_J1230.8+1223_daily_bin1125.fits sctable="SC_DATA" outfile=/scratch/kocevski/757711/ltcube_530928001_531187201_4FGL_J1230.8+1223_daily_bin1125.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/757711/ft2_4FGL_J1230.8+1223_daily_bin1125.fits
.....................!
real 15.93
user 15.54
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/757711/ft1_filtered_4FGL_J1230.8+1223_daily_bin1125.fits evtable="EVENTS" scfile=/scratch/kocevski/757711/ft2_4FGL_J1230.8+1223_daily_bin1125.fits sctable="SC_DATA" expcube=/scratch/kocevski/757711/ltcube_530928001_531187201_4FGL_J1230.8+1223_daily_bin1125.fits outfile=/scratch/kocevski/757711/expmap_530928001_531187201_4FGL_J1230.8+1223_daily_bin1125.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/757711/ltcube_530928001_531187201_4FGL_J1230.8+1223_daily_bin1125.fits
.....................!
real 191.88
user 186.82
sys 4.59

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/757711/ft1_filtered_4FGL_J1230.8+1223_daily_bin1125.fits scfile=/scratch/kocevski/757711/ft2_4FGL_J1230.8+1223_daily_bin1125.fits outfile=/scratch/kocevski/757711/cmap_530928001_531187201_4FGL_J1230.8+1223_daily_bin1125.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/757711/ft1_filtered_4FGL_J1230.8+1223_daily_bin1125.fits scfile=/scratch/kocevski/757711/ft2_4FGL_J1230.8+1223_daily_bin1125.fits outfile=/scratch/kocevski/757711/cmap_HighResolution_530928001_531187201_4FGL_J1230.8+1223_daily_bin1125.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    117.61       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0360       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1952       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12852E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8865       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5100       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.3971       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    100.79       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4108       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.721       1.0000         .10000E-03   10000.    
    19 'norm      '    3.0320       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.430       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.1993       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.1193       1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.565       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.6463       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .74005       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6796.186     FROM MIGRAD    STATUS=CONVERGED     99 CALLS     2609 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.8099        .85797E-06** at limit **
   2  Prefactor     117.61        1.2101       -.84409E-07    .26252E-02
   3  Prefactor     3.0353        5.2129        .72405E-05    .47101E-03
   4  Prefactor     .10000E-03    3.0238        .35427E-06** at limit **
   5  Prefactor     2.1951        3.2451       -.48245E-06   -.45886E-04
   6  Prefactor     .10014E-03    208.37       -.13701E-04** at limit **
   7  Prefactor     .10000E-03    14.887        .15889E-06** at limit **
   8  Prefactor     3.8867        3.0674        .81289E-06    .58918E-04
   9  Prefactor     2.5098        2.9905       -.72199E-06   -.65726E-04
  10  Prefactor     .10000E-03    7.0736        .55493E-06** at limit **
  11  norm          .10000E-03    1.7552        .95773E-07** at limit **
  12  Prefactor     6.3975        1.0054       -.52857E-07    .12378E-03
  13  norm          .10000E-03    .21558        .26164E-07** at limit **
  14  norm          100.78        1.6926       -.14584E-06    .30948E-02
  15  Prefactor     .10000E-03    40.242       -.95432E-06** at limit **
  16  norm          .10000E-03    .39547        .58841E-07** at limit **
  17  Prefactor     4.4111        1.0102       -.96062E-07    .67652E-05
  18  Prefactor     15.720        1.0312        .64857E-07   -.54604E-03
  19  norm          3.0317        1.6415       -.38484E-07   -.82006E-05
  20  Prefactor     24.430        1.0041       -.23594E-07    .12326E-03
  21  Prefactor     9.1797        3.1689       -.99966E-06    .18760E-02
  22  Prefactor     .10000E-03    2.7251        .25392E-07** at limit **
  23  Prefactor     8.1201        1.5747        .70542E-06   -.16864E-02
  24  Prefactor     16.552        1.8214        .27289E-07   -.12926E-02
  25  Normalizat    1.6465        .23276       -.16384E-05    .18634E-04
  26  Prefactor     .73983        .19827        .82811E-06    .26125E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 117.607
  Prefactor  = 3.03528
  Prefactor  = 0.0001
  Prefactor  = 2.19506
  Prefactor  = 0.000100135
  Prefactor  = 0.0001
  Prefactor  = 3.88672
  Prefactor  = 2.50977
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.39752
  norm       = 0.0001
  norm       = 100.78
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.41111
  Prefactor  = 15.7196
  norm       = 3.03167
  Prefactor  = 24.4297
  Prefactor  = 9.17973
  Prefactor  = 0.0001
  Prefactor  = 8.12012
  Prefactor  = 16.5522
  Normalizat = 1.64653
  Prefactor  = 0.739827
 **********
 **   18 **HESSE 
 **********

 FCN=   6796.186     FROM HESSE     STATUS=OK           514 CALLS     3123 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.7831        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     117.61        94.489        .92757E-03   -1.3535    
   3  Prefactor     3.0353        5.2327        .58219E-02   -1.5360    
   4  Prefactor     .10000E-03    3.0233        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.1951        3.2709        .69436E-02   -1.5412    
   6  Prefactor     .10014E-03    199.57        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.877        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.8867        3.0927        .51168E-02   -1.5314    
   9  Prefactor     2.5098        3.0209        .64478E-02   -1.5391    
  10  Prefactor     .10000E-03    7.0729        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.7324        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.3975        24.351        .39673E-02   -1.5202    
  13  norm          .10000E-03    .21439        .90712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          100.78        47.307        .10012E-02   -1.3697    
  15  Prefactor     .10000E-03    40.283        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .22012        .20749E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.4111        6.0461        .47939E-02   -1.5288    
  18  Prefactor     15.720        18.424        .25253E-02   -1.4915    
  19  norm          3.0317        1.6664        .58260E-02   -1.5360    
  20  Prefactor     24.430        33.373        .20261E-02   -1.4719    
  21  Prefactor     9.1797        54.672        .33034E-02   -1.5102    
  22  Prefactor     .10000E-03    2.7223        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.1201        22.008        .35176E-02   -1.5138    
  24  Prefactor     16.552        24.688        .24602E-02   -1.4894    
  25  Normalizat    1.6465        .20716        .56562E-01   -.73740    
  26  Prefactor     .73983        .17214        .68823E-01   -1.0199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90691e-07
Minuit parameter uncertainties:
  1  1.19703e-05
  2  94.6104
  3  5.23346
  4  3.66523e-06
  5  3.27118
  6  0.0104313
  7  1.37656e-05
  8  3.0928
  9  3.02112
  10  1.41833e-06
  11  1.42882e-06
  12  24.3889
  13  3.06056e-08
  14  47.325
  15  0.000257983
  16  1.5041e-07
  17  6.04689
  18  18.431
  19  1.6664
  20  33.3984
  21  44.8666
  22  2.01896e-07
  23  22.0295
  24  24.7029
  25  0.207264
  26  0.172264
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  4.411e+00  6.047e+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:  7.398e-01  1.723e-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.647e+00  2.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.01
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 1.20e-08 +/- 1.65e-08
Energy Flux (Fixed Index): 7.26e-06 +/- 9.95e-06

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

Saving results to:
/scratch/kocevski/757711/likelihoodResults_530928001_531187201_4FGL_J1230.8+1223_daily_bin1125.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) = 6796.18562647
delta logL = 0.000644185490273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6796.18551066
delta logL = 0.000759989319704

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5023       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0203       1.0000          .0000       10.000    
     3 'Normalizat'    1.6470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73974       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=   6796.185     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      231 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5147        249.20        .47437E-02    .91215E-04
   2  Index         2.0231        5.5791        .25674        .42756E-04
   3  Normalizat    1.6469        .82211E-01    .56557E-01   -.97107E-06
   4  Prefactor     .73970        .59049E-01    .68828E-01    .23717E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.5147
  Index      = 2.02306
  Normalizat = 1.6469
  Prefactor  = 0.739702
 **********
 **   18 **HESSE 
 **********

 FCN=   6796.185     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5147        6.8150        .18975E-03   -1.5283    
   2  Index         2.0231        .88319        .11224E-01   -.63775    
   3  Normalizat    1.6469        .23010        .25007E-03   -.73730    
   4  Prefactor     .73970        .19799        .30456E-03   -1.0199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30987e-12
Minuit parameter uncertainties:
  1  6.81617
  2  0.890467
  3  0.230245
  4  0.198178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/757711': 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) = 6796.18549929
delta logL = 0.000771356891164

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  4.515e+00  6.816e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.023e+00  8.905e-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:  7.397e-01  1.982e-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.647e+00  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 187.712 12.388
Photon Index (Free Index): 2.02 +/- 0.89
Photon Flux (Free Index): 1.16e-08 +/- 1.92e-08
Energy Flux (Free Index): 7.57e-06 +/- 1.37e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/757711/cmap_HighResolution_530928001_531187201_4FGL_J1230.8+1223_daily_bin1125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.81e-03', comment='SUCCESS', photon_flux='1.20e-08', energy_flux2='7.57e-06', photon_flux_error='1.65e-08', dlogl='7.71e-04', energy_flux='7.26e-06', photon_flux2='1.16e-08', job_status='DONE', time_completed='2021-09-05 21:51:50.470699', photon_index_error2='0.89', photon_index2='2.02', ts='1.01', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='6.39e-08', energy_flux_error2='1.37e-05', EG='1.65', time_epoch_completed='1630903910.47', return_code='0', job_id='757711', GAL2='0.74', EG2='1.65', return_code2='0', energy_flux_error='9.95e-06', photon_flux_error2='1.92e-08', ts2='1.01', photon_index='2.06' WHERE bin_id='1125' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:51:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 757711: <4FGL_J1230.8+1223_daily_bin1125> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1125 187.712 12.3883 530928001 531187201 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 :                                   727.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            966 sec.

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

