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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin789
RA = 187.712, Dec = 12.3883
tmin = 443836801, tmax = 444096001
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='755805', job_status='RUN', time_executed='2021-09-05 21:31:09.864317', time_epoch_executed='1630902669.86' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='789'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/755805

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/755805/ft1_4FGL_J1230.8+1223_daily_bin789.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/755805/ft2_4FGL_J1230.8+1223_daily_bin789.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/755805/ft1_4FGL_J1230.8+1223_daily_bin789.fits outfile=/scratch/kocevski/755805/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin789.fits ra=187.712 dec=12.3883 rad=12.0 tmin=443836801.0 tmax=444096001.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.51
user 3.29
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/755805/ft1_filtered_4FGL_J1230.8+1223_daily_bin789.fits evtable="EVENTS" scfile=/scratch/kocevski/755805/ft2_4FGL_J1230.8+1223_daily_bin789.fits sctable="SC_DATA" expcube=/scratch/kocevski/755805/ltcube_443836801_444096001_4FGL_J1230.8+1223_daily_bin789.fits outfile=/scratch/kocevski/755805/expmap_443836801_444096001_4FGL_J1230.8+1223_daily_bin789.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/755805/ltcube_443836801_444096001_4FGL_J1230.8+1223_daily_bin789.fits
.....................!
real 191.65
user 186.33
sys 4.79

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/755805/ft1_filtered_4FGL_J1230.8+1223_daily_bin789.fits scfile=/scratch/kocevski/755805/ft2_4FGL_J1230.8+1223_daily_bin789.fits outfile=/scratch/kocevski/755805/cmap_443836801_444096001_4FGL_J1230.8+1223_daily_bin789.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/755805/ft1_filtered_4FGL_J1230.8+1223_daily_bin789.fits scfile=/scratch/kocevski/755805/ft2_4FGL_J1230.8+1223_daily_bin789.fits outfile=/scratch/kocevski/755805/cmap_HighResolution_443836801_444096001_4FGL_J1230.8+1223_daily_bin789.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.58
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5765       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .64917E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .23748       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9126       1.0000         .10000E-03   10000.    
     6 'Prefactor '    54.937       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.135       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.6575       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0329       1.0000         .10000E-03   10000.    
    14 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    97.114       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1453       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.3064       1.0000         .10000E-03   10000.    
    19 'norm      '    4.0901       1.0000         .10000E-03   10000.    
    20 'Prefactor '    59.165       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .37414       1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.582       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2027       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .69922       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=   6687.714     FROM MIGRAD    STATUS=CONVERGED   1118 CALLS     3639 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5748        10.133        .15649E-03    .30658E-04
   2  Prefactor     .10000E-03    32.894        .18142E-02** at limit **
   3  Prefactor     .10000E-03    46.910        .38274E-02** at limit **
   4  Prefactor     .14583        16.019        .81421E-01    .23347E-03
   5  Prefactor     2.9120        2.6875        .62423E-03   -.10263E-03
   6  Prefactor     55.075        82.517        .27059E-03   -.65543E-05
   7  Prefactor     14.117        39.851        .10654E-03    .33721E-04
   8  Prefactor     .10000E-03    2.3049        .16389E-02** at limit **
   9  Prefactor     .10000E-03    .88455        .74766E-03** at limit **
  10  Prefactor     .10000E-03    7.1710        .18142E-02** at limit **
  11  norm          1.6559        3.6223        .19889E-03    .19486E-03
  12  Prefactor     .10000E-03    8.6608        .18142E-02** at limit **
  13  norm          1.0328        .29974        .22779E-04   -.48561E-03
  14  norm          .10000E-03    13.957        .18142E-02** at limit **
  15  Prefactor     97.073        90.911        .20395E-03    .40503E-04
  16  norm          1.1451        .56156        .38364E-04   -.11187E-02
  17  Prefactor     .10000E-03    12.029        .18142E-02** at limit **
  18  Prefactor     8.2970        28.208        .13910E-03   -.79279E-05
  19  norm          4.0900        1.6700        .63626E-04   -.22889E-03
  20  Prefactor     59.165        48.634        .52159E-04    .11334E-05
  21  Prefactor     .10000E-03    38.168        .18142E-02** at limit **
  22  Prefactor     .10000E-03    11.580        .36285E-03** at limit **
  23  Prefactor     .26146        258.25        .43664E-02    .51443E-04
  24  Prefactor     29.621        17.666        .73664E-04    .12686E-03
  25  Normalizat    1.2029        .23728        .24350E-03    .71341E-04
  26  Prefactor     .69932        .18465        .27277E-03    .93651E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.57479
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.145832
  Prefactor  = 2.91204
  Prefactor  = 55.0746
  Prefactor  = 14.117
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.65589
  Prefactor  = 0.0001
  norm       = 1.03277
  norm       = 0.0001
  Prefactor  = 97.0727
  norm       = 1.14515
  Prefactor  = 0.0001
  Prefactor  = 8.29701
  norm       = 4.08997
  Prefactor  = 59.165
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.261463
  Prefactor  = 29.6213
  Normalizat = 1.20291
  Prefactor  = 0.699323
 **********
 **   18 **HESSE 
 **********

 FCN=   6687.714     FROM HESSE     STATUS=OK           444 CALLS     4083 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5748        10.130        .62594E-05   -1.5195    
   2  Prefactor     .10000E-03    32.894        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    47.500        .76548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .14583        14.939        .85463E-01   -1.5632    
   5  Prefactor     2.9120        2.6865        .24969E-04   -1.5367    
   6  Prefactor     55.075        82.258        .10824E-04   -1.4222    
   7  Prefactor     14.117        39.808        .42614E-05   -1.4956    
   8  Prefactor     .10000E-03    2.3160        .32778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .88460        .14953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.1710        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.6559        3.6172        .79554E-05   -1.5451    
  12  Prefactor     .10000E-03    8.6609        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0328        .29927        .91116E-06   -1.5505    
  14  norm          .10000E-03    13.957        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     97.073        90.908        .40789E-04   -1.3734    
  16  norm          1.1451        .56120        .15346E-05   -1.5494    
  17  Prefactor     .10000E-03    12.033        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.2970        28.202        .55640E-05   -1.5132    
  19  norm          4.0900        1.6699        .25450E-05   -1.5303    
  20  Prefactor     59.165        48.631        .10432E-04   -1.4168    
  21  Prefactor     .10000E-03    38.169        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.580        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .26146        228.71        .17466E-03   -1.5606    
  24  Prefactor     29.621        16.928        .29466E-05   -1.4619    
  25  Normalizat    1.2029        .23373        .97399E-05   -.86513    
  26  Prefactor     .69932        .18439        .10911E-04   -1.0355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44124e-09
Minuit parameter uncertainties:
  1  10.1325
  2  5.10322e-05
  3  0.00063024
  4  2.95175
  5  2.68658
  6  82.4285
  7  39.8832
  8  0.000136584
  9  3.63693e-06
  10  4.58037e-06
  11  3.61769
  12  4.40249e-06
  13  0.299274
  14  3.91698e-05
  15  91.0388
  16  0.561202
  17  0.000140191
  18  28.2474
  19  1.66994
  20  48.6641
  21  4.10261e-05
  22  5.17703e-06
  23  15.5227
  24  16.9305
  25  0.23393
  26  0.184554
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  1.402e-04  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:  6.993e-01  1.846e-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.203e+00  2.339e-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: 6.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/755805/likelihoodResults_443836801_444096001_4FGL_J1230.8+1223_daily_bin789.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) = 6687.71456765
delta logL = -0.000396309994358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6686.93864182
delta logL = 0.775529521448

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34455       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0276       1.0000          .0000       10.000    
     3 'Normalizat'    1.1144       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74249       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=   6686.939     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      299 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34338        4.2077        .87377E-02    .13916E-02
   2  Index         4.0290        2.2676        .90298E-01    .18145E-03
   3  Normalizat    1.1145        .39952E-01    .56903E-01   -.19023E-04
   4  Prefactor     .74242        .35151E-01    .42964E-01   -.46498E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.343376
  Index      = 4.02904
  Normalizat = 1.1145
  Prefactor  = 0.742421
 **********
 **   18 **HESSE 
 **********

 FCN=   6686.939     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      334 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34338        11.482        .39611E-03   -1.5591    
   2  Index         4.0290        4.1021        .46395E-02   -.19543    
   3  Normalizat    1.1145        .16015        .25163E-03   -.89288    
   4  Prefactor     .74242        .13868        .26514E-03   -1.0189    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.22121e-07
Minuit parameter uncertainties:
  1  3.97144
  2  4.85863
  3  0.160216
  4  0.138741
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/755805': 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) = 6686.93864121
delta logL = 0.775530132554

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  3.434e-01  3.971e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  4.029e+00  4.859e+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:  7.424e-01  1.387e-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.115e+00  1.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.66
Ra Dec: 187.712 12.388
Photon Index (Free Index): 4.03 +/- 4.86
Photon Flux (Free Index): 7.48e-08 +/- 6.39e-08
Energy Flux (Free Index): 1.11e-05 +/- 1.10e-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/755805/cmap_HighResolution_443836801_444096001_4FGL_J1230.8+1223_daily_bin789.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.94e-03', comment='SUCCESS', energy_flux2='1.11e-05', dlogl='7.76e-01', photon_flux2='7.48e-08', job_status='DONE', time_completed='2021-09-05 21:44:34.766409', photon_index_error2='4.86', photon_index2='4.03', ts='-0.00', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='6.56e-08', energy_flux_error2='1.10e-05', EG='1.20', time_epoch_completed='1630903474.77', return_code='0', job_id='755805', GAL2='0.74', EG2='1.11', return_code2='102', photon_flux_error2='6.39e-08', ts2='1.66', photon_index='2.06' WHERE bin_id='789' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:44:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 755805: <4FGL_J1230.8+1223_daily_bin789> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin789 187.712 12.3883 443836801 444096001 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 :                                   802.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            850 sec.

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

