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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1223
RA = 187.712, Dec = 12.3883
tmin = 556329601, tmax = 556588801
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='757849', job_status='RUN', time_executed='2021-09-05 21:42:12.707567', time_epoch_executed='1630903332.71' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1223'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/757849

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/757849/ft1_4FGL_J1230.8+1223_daily_bin1223.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/757849/ft2_4FGL_J1230.8+1223_daily_bin1223.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/757849/ft1_4FGL_J1230.8+1223_daily_bin1223.fits outfile=/scratch/kocevski/757849/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1223.fits ra=187.712 dec=12.3883 rad=12.0 tmin=556329601.0 tmax=556588801.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.78
user 3.49
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/757849/ft1_filtered_4FGL_J1230.8+1223_daily_bin1223.fits evtable="EVENTS" scfile=/scratch/kocevski/757849/ft2_4FGL_J1230.8+1223_daily_bin1223.fits sctable="SC_DATA" expcube=/scratch/kocevski/757849/ltcube_556329601_556588801_4FGL_J1230.8+1223_daily_bin1223.fits outfile=/scratch/kocevski/757849/expmap_556329601_556588801_4FGL_J1230.8+1223_daily_bin1223.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/757849/ltcube_556329601_556588801_4FGL_J1230.8+1223_daily_bin1223.fits
.....................!
real 192.89
user 188.31
sys 4.13

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/757849/ft1_filtered_4FGL_J1230.8+1223_daily_bin1223.fits scfile=/scratch/kocevski/757849/ft2_4FGL_J1230.8+1223_daily_bin1223.fits outfile=/scratch/kocevski/757849/cmap_556329601_556588801_4FGL_J1230.8+1223_daily_bin1223.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/757849/ft1_filtered_4FGL_J1230.8+1223_daily_bin1223.fits scfile=/scratch/kocevski/757849/ft2_4FGL_J1230.8+1223_daily_bin1223.fits outfile=/scratch/kocevski/757849/cmap_HighResolution_556329601_556588801_4FGL_J1230.8+1223_daily_bin1223.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.61
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/757849/ft1_filtered_4FGL_J1230.8+1223_daily_bin1223.fits', '/scratch/kocevski/757849/ft2_4FGL_J1230.8+1223_daily_bin1223.fits', expMap='/scratch/kocevski/757849/expmap_556329601_556588801_4FGL_J1230.8+1223_daily_bin1223.fits', expCube='/scratch/kocevski/757849/ltcube_556329601_556588801_4FGL_J1230.8+1223_daily_bin1223.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/757849/Model_4FGL_J1230.8+1223_daily_bin1223.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/757849/ft1_filtered_4FGL_J1230.8+1223_daily_bin1223.fits
Spacecraft file(s): /scratch/kocevski/757849/ft2_4FGL_J1230.8+1223_daily_bin1223.fits
Exposure map: /scratch/kocevski/757849/expmap_556329601_556588801_4FGL_J1230.8+1223_daily_bin1223.fits
Exposure cube: /scratch/kocevski/757849/ltcube_556329601_556588801_4FGL_J1230.8+1223_daily_bin1223.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/757849/Model_4FGL_J1230.8+1223_daily_bin1223.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 182.201304819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 178.448716924

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12706E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    601.76       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .42958E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22174E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0845       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1191.4       1.0000         .10000E-03   10000.    
     7 'Prefactor '    222.35       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0945       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .82460E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10846E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22533E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    2.0896       1.0000         .10000E-03   10000.    
    14 'norm      '    202.37       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .30455E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .54811       1.0000         .10000E-03   10000.    
    17 'Prefactor '    233.46       1.0000         .10000E-03   10000.    
    18 'Prefactor '    82.349       1.0000         .10000E-03   10000.    
    19 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .76593E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.7873       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .57859E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.9205       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .21605       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .36551       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=   178.1119     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     1313 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    2295.7       -.68078E-04** at limit **
   2  Prefactor     633.69        65.735        .12105E-04   -.96792E-02
   3  Prefactor     .10000E-03    71.952       -.54587E-05** at limit **
   4  Prefactor     .10005E-03    356.23       -.11597E-04** at limit **
   5  Prefactor     1.0845        1.2009         .0000         .0000    
   6  Prefactor     1139.7        42.797        .14443E-06    .31393E-01
   7  Prefactor     237.47        205.81        .18283E-04    .18015E-03
   8  Prefactor     1.0945        1.1925         .0000         .0000    
   9  Prefactor     .10043E-03    2050.9        .17726E-03** at limit **
  10  Prefactor     .10000E-03    60.127        .99687E-05** at limit **
  11  norm          .10000E-03    8.1129        .12044E-05** at limit **
  12  Prefactor     .10000E-03    169.92       -.30802E-04** at limit **
  13  norm          2.0896        1.0319         .0000         .0000    
  14  norm          200.74        200.26        .87777E-05    .10571E-02
  15  Prefactor     .10001E-03    455.12       -.21156E-04** at limit **
  16  norm          .57307        2.1710       -.19335E-05   -.19705E-03
  17  Prefactor     .22252E-03    551.39       -.18439E-03** at limit **
  18  Prefactor     3123.7        3654.6       -.23670E-03    .35147E-03
  19  norm          .10000E-03    2.8721       -.96538E-06** at limit **
  20  Prefactor     .10000E-03    95.622       -.83435E-07** at limit **
  21  Prefactor     .10018E-03    1137.1        .77732E-04** at limit **
  22  Prefactor     1.7873        1.0457         .0000         .0000    
  23  Prefactor     .10000E-03    1010.3       -.45303E-04** at limit **
  24  Prefactor     6.9205        1.0026         .0000         .0000    
  25  Normalizat    .10000E-01    9.9572        .29677E-04** at limit **
  26  Prefactor     .46467        .51007        .48713E-04    .10506E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100036
  Prefactor  = 633.69
  Prefactor  = 0.000100001
  Prefactor  = 0.000100052
  Prefactor  = 1.0845
  Prefactor  = 1139.67
  Prefactor  = 237.473
  Prefactor  = 1.09451
  Prefactor  = 0.000100433
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.08958
  norm       = 200.739
  Prefactor  = 0.000100005
  norm       = 0.573071
  Prefactor  = 0.000222517
  Prefactor  = 3123.71
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100177
  Prefactor  = 1.78728
  Prefactor  = 0.000100001
  Prefactor  = 6.92048
  Normalizat = 0.01
  Prefactor  = 0.464671
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   178.1119     FROM HESSE     STATUS=FAILED        25 CALLS     1338 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    6161.6        .10298E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     633.69        596.01        .42050E-03   -1.0619    
   3  Prefactor     .10000E-03    72.552        .10615E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10005E-03    361.30        .10067E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     586.39        584.97         .0000       -1.5500    
   6  Prefactor     1139.7        .98092        .14443E-06   -.88209    
   7  Prefactor     237.47        1.0326        .18283E-04   -1.2614    
   8  Prefactor     1.0945        1.1925         .0000       -1.5499    
   9  Prefactor     .10043E-03    .21216        .17726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .20571        .99687E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .20571        .12044E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .25298       -.30802E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.0896        1.0319         .0000       -1.5419    
  14  norm          200.74        .99604        .87777E-05   -1.2865    
  15  Prefactor     .10001E-03    .24532       -.21156E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .57307        .86785       -.19335E-05   -1.5557    
  17  Prefactor     .22252E-03    .10964E-02   -.18439E-03   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3123.7        5.1285       -.23670E-03   -.38468    
  19  norm          .10000E-03    .20571       -.96538E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .20571       -.83435E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10018E-03    .22085        .77732E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.7873        1.0457         .0000       -1.5441    
  23  Prefactor     .10000E-03    .21661       -.45303E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.9205        1.0026         .0000       -1.5182    
  25  Normalizat    .10000E-01    .30951        .29677E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .46467        .77593        .48713E-04   -1.1363    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.58191e-10
Minuit parameter uncertainties:
  1  0.0192111
  2  602.119
  3  0.000466092
  4  0.00870268
  5  1.20089
  6  0.980916
  7  1.03265
  8  1.19253
  9  0.000606134
  10  2.68157e-05
  11  4.92629e-06
  12  1.26759e-05
  13  1.03195
  14  0.996041
  15  7.14536e-05
  16  0.867865
  17  0.000733028
  18  5.12846
  19  2.9653e-06
  20  2.1026e-06
  21  0.000395748
  22  1.04575
  23  2.55267e-05
  24  1.00263
  25  9.022e-05
  26  0.794669
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 178.111943798

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  2.225e-04  7.330e-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:  4.647e-01  7.947e-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.000e-02  9.022e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 187.712 12.388
Photon Flux Upper Limit: 5.06e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.81e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/757849/likelihoodResults_556329601_556588801_4FGL_J1230.8+1223_daily_bin1223.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) = 178.111952215
delta logL = -8.4167030252e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 178.111938242
delta logL = 5.55667233471e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69663E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    3.8397       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .46467       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=   178.1115     FROM MIGRAD    STATUS=CONVERGED    145 CALLS      346 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2901        8548.4        .93537E-02    .10693E-03
   2  Index         3.5643        7.9207        .20736        .15601E-04
   3  Normalizat    .10000E-01    .17330        .21468    ** at limit **
   4  Prefactor     .46365        .10819        .58682E-01    .64960E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.29009
  Index      = 3.56435
  Normalizat = 0.01
  Prefactor  = 0.463653
 **********
 **   18 **HESSE 
 **********

 FCN=   178.1115     FROM HESSE     STATUS=OK            33 CALLS      379 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2901        681.62        .37415E-03   -1.5481    
   2  Index         3.5643        5.1501        .11468E-01   -.29123    
   3  Normalizat    .10000E-01    9.9503        .13311E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .46365        .42142        .25963E-03   -1.1367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5192e-09
Minuit parameter uncertainties:
  1  60.0045
  2  11.9536
  3  0.00100316
  4  0.424297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/757849': 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) = 178.111461686
delta logL = 0.000482112849426

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.290e+00  6.000e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  3.564e+00  1.195e+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:  4.637e-01  4.243e-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.000e-02  1.003e-03  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/757849/cmap_HighResolution_556329601_556588801_4FGL_J1230.8+1223_daily_bin1223.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.81e-01', job_status='DONE', photon_flux_upper_limit='5.06e-06', time_completed='2021-09-05 21:48:00.752878', job_id='757849', GAL2='0.46', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630903680.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.46', dlogl='4.82e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1223' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:48:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 757849: <4FGL_J1230.8+1223_daily_bin1223> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1223> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 21:35:56 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:38:04 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:38:04 2021
Terminated at Sun Sep  5 21:48:01 2021
Results reported at Sun Sep  5 21:48:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1223 187.712 12.3883 556329601 556588801 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 :                                   329.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   597 sec.
    Turnaround time :                            725 sec.

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

