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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin656
RA = 187.712, Dec = 12.3883
tmin = 409363201, tmax = 409622401
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='754471', job_status='RUN', time_executed='2021-09-05 21:27:17.175036', time_epoch_executed='1630902437.18' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='656'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/754471

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/754471/ft1_4FGL_J1230.8+1223_daily_bin656.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/754471/ft2_4FGL_J1230.8+1223_daily_bin656.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/754471/ft1_4FGL_J1230.8+1223_daily_bin656.fits outfile=/scratch/kocevski/754471/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin656.fits ra=187.712 dec=12.3883 rad=12.0 tmin=409363201.0 tmax=409622401.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 5.62
user 5.32
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/754471/ft1_filtered_4FGL_J1230.8+1223_daily_bin656.fits evtable="EVENTS" scfile=/scratch/kocevski/754471/ft2_4FGL_J1230.8+1223_daily_bin656.fits sctable="SC_DATA" expcube=/scratch/kocevski/754471/ltcube_409363201_409622401_4FGL_J1230.8+1223_daily_bin656.fits outfile=/scratch/kocevski/754471/expmap_409363201_409622401_4FGL_J1230.8+1223_daily_bin656.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/754471/ltcube_409363201_409622401_4FGL_J1230.8+1223_daily_bin656.fits
.....................!
real 192.00
user 186.11
sys 5.11

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/754471/ft1_filtered_4FGL_J1230.8+1223_daily_bin656.fits scfile=/scratch/kocevski/754471/ft2_4FGL_J1230.8+1223_daily_bin656.fits outfile=/scratch/kocevski/754471/cmap_409363201_409622401_4FGL_J1230.8+1223_daily_bin656.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=187.712 yref=12.3883 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.59
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/754471/ft1_filtered_4FGL_J1230.8+1223_daily_bin656.fits scfile=/scratch/kocevski/754471/ft2_4FGL_J1230.8+1223_daily_bin656.fits outfile=/scratch/kocevski/754471/cmap_HighResolution_409363201_409622401_4FGL_J1230.8+1223_daily_bin656.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9151       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12310E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5049       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10897E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.2968       1.0000         .10000E-03   10000.    
    14 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    108.77       1.0000         .10000E-03   10000.    
    16 'norm      '    .72414       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10484E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.0783       1.0000         .10000E-03   10000.    
    20 'Prefactor '    51.996       1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.380       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.805       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.1962       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4881       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .74721       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=   5397.656     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     3104 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.8738       -.10095E-06** at limit **
   2  Prefactor     .10000E-03    79.538       -.39558E-06** at limit **
   3  Prefactor     5.9167        13.662        .56399E-05   -.21745E-04
   4  Prefactor     .10000E-03    10.092       -.28678E-06** at limit **
   5  Prefactor     .10000E-03    6.3130       -.44214E-06** at limit **
   6  Prefactor     .10000E-03    60.424       -.46641E-06** at limit **
   7  Prefactor     .10000E-03    74.195       -.73885E-06** at limit **
   8  Prefactor     .10000E-03    .95396       -.57975E-07** at limit **
   9  Prefactor     3.5047        3.2887        .67309E-07    .67689E-05
  10  Prefactor     .10000E-03    10.498       -.15056E-06** at limit **
  11  norm          .10000E-03    2.3542       -.45788E-06** at limit **
  12  Prefactor     .10000E-03    37.816       -.12478E-05** at limit **
  13  norm          5.2967        .66998        .81404E-08    .97271E-04
  14  norm          .10000E-03    24.027       -.23805E-06** at limit **
  15  Prefactor     108.66        115.66       -.29394E-06   -.91621E-05
  16  norm          .72367        .79131        .13821E-06    .18789E-03
  17  Prefactor     .10000E-03    4.4412        .41251E-07** at limit **
  18  Prefactor     .10000E-03    13.777        .12880E-07** at limit **
  19  norm          3.0780        1.9316        .41444E-07   -.15360E-04
  20  Prefactor     52.048        64.538        .14859E-06    .80814E-05
  21  Prefactor     21.629        80.271       -.52467E-05    .20500E-04
  22  Prefactor     .10000E-03    3.4471       -.68511E-07** at limit **
  23  Prefactor     27.774        25.336        .16236E-05    .39644E-05
  24  Prefactor     4.1980        24.651       -.12471E-05   -.22024E-05
  25  Normalizat    1.4882        .25042        .82118E-06   -.15066E-04
  26  Prefactor     .74705        .20361       -.17333E-05    .46684E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.91672
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.50468
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.29671
  norm       = 0.0001
  Prefactor  = 108.664
  norm       = 0.723675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.07799
  Prefactor  = 52.0484
  Prefactor  = 21.629
  Prefactor  = 0.0001
  Prefactor  = 27.7737
  Prefactor  = 4.19798
  Normalizat = 1.48824
  Prefactor  = 0.747051
 **********
 **   18 **HESSE 
 **********

 FCN=   5397.656     FROM HESSE     STATUS=OK           452 CALLS     3556 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.8894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    79.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.9167        13.682        .82556E-03   -1.5221    
   4  Prefactor     .10000E-03    10.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.5332        .36002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    60.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    74.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .95698        .70054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.5047        3.2849        .12416E-03   -1.5334    
  10  Prefactor     .10000E-03    10.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.3839        .10993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    37.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.2967        .67426        .20319E-04   -1.5248    
  14  norm          .10000E-03    24.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     108.66        115.57        .19282E-03   -1.3619    
  16  norm          .72367        .76576        .62557E-04   -1.5538    
  17  Prefactor     .10000E-03    4.4451        .15121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.0780        1.9229        .76441E-04   -1.5357    
  20  Prefactor     52.048        64.405        .55620E-04   -1.4264    
  21  Prefactor     21.629        79.386        .86624E-04   -1.4777    
  22  Prefactor     .10000E-03    3.4526        .13321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     27.774        25.282        .75975E-04   -1.4653    
  24  Prefactor     4.1980        24.319        .19673E-03   -1.5298    
  25  Normalizat    1.4882        .29997        .27625E-03   -.78109    
  26  Prefactor     .74705        .23996        .31841E-03   -1.0171    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05838e-11
Minuit parameter uncertainties:
  1  5.11714e-07
  2  6.82567e-05
  3  13.6897
  4  2.15261e-05
  5  1.02627e-05
  6  0.00012573
  7  3.17129e-05
  8  1.35732e-07
  9  3.28504
  10  4.20669e-06
  11  3.97806e-06
  12  1.33627e-05
  13  0.674258
  14  1.62173e-06
  15  115.814
  16  0.765771
  17  9.41248e-08
  18  1.22975e-06
  19  1.9229
  20  64.4916
  21  79.7777
  22  9.4005e-07
  23  25.2921
  24  20.2201
  25  0.300326
  26  0.240299
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  9.412e-08  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.471e-01  2.403e-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.488e+00  3.003e-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.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/754471/likelihoodResults_409363201_409622401_4FGL_J1230.8+1223_daily_bin656.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) = 5397.65701789
delta logL = -0.00104653230028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5397.65597128
delta logL = 6.97200448485e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0438       1.0000          .0000       10.000    
     3 'Normalizat'    1.4883       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74704       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5397.656     FROM MIGRAD    STATUS=FAILED        89 CALLS      244 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10177E-03    114.54        .15234E-02** at limit **
   2  Index         1.9491        8.4300        .50000        .18364E-04
   3  Normalizat    1.4882        .30987E-01    .27625E-03   -.11605E-04
   4  Prefactor     .74705        .26439E-01    .31841E-03    .10354E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5397.656     FROM SIMPLEX   STATUS=UNCHANGED    132 CALLS      376 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10177E-03    114.54        .38852E-03** at limit **
   2  Index         1.9491        8.4300        .27397E-03    .18364E-04
   3  Normalizat    1.4882        .30987E-01    .44455E-05   -.11605E-04
   4  Prefactor     .74705        .26439E-01    .52642E-05    .10354E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5397.656     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      417 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    98.680        .30468E-02** at limit **
   2  Index         1.6882        8.8149        .50000        .34997E-06
   3  Normalizat    1.4882        .27760E-01    .11050E-04    .58026E-04
   4  Prefactor     .74705        .23686E-01    .12737E-04    .56234E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 1.68823
  Normalizat = 1.48824
  Prefactor  = 0.74705
 **********
 **   18 **HESSE 
 **********

 FCN=   5397.656     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      446 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     .10000E-03    436.96        .60935E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6882        5.4941        .50000       -.72396    
   3  Normalizat    1.4882        .64611E-01    .22100E-05   -.78109    
   4  Prefactor     .74705        .55130E-01    .25473E-05   -1.0171    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.35285e-08
Minuit parameter uncertainties:
  1  0.00243205
  2  1372.36
  3  0.0646149
  4  0.055134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/754471': 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) = 5397.65597015
delta logL = 1.20651930047e-06

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  2.432e-03  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  1.688e+00  1.372e+03  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.470e-01  5.513e-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:  1.488e+00  6.461e-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/754471/cmap_HighResolution_409363201_409622401_4FGL_J1230.8+1223_daily_bin656.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.76e-03', job_status='DONE', photon_flux_upper_limit='6.31e-08', time_completed='2021-09-05 21:39:08.601191', job_id='754471', GAL2='0.75', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1630903148.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.21e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='656' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:39:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 754471: <4FGL_J1230.8+1223_daily_bin656> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin656> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 21:25:31 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:26:57 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:26:57 2021
Terminated at Sun Sep  5 21:39:09 2021
Results reported at Sun Sep  5 21:39:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin656 187.712 12.3883 409363201 409622401 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 :                                   705.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            818 sec.

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

