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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1010
RA = 187.712, Dec = 12.3883
tmin = 501120001, tmax = 501379201
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='757536', job_status='RUN', time_executed='2021-09-05 21:39:51.805291', time_epoch_executed='1630903191.81' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1010'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/757536

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/757536/ft1_4FGL_J1230.8+1223_daily_bin1010.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/757536/ft2_4FGL_J1230.8+1223_daily_bin1010.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/757536/ft1_4FGL_J1230.8+1223_daily_bin1010.fits outfile=/scratch/kocevski/757536/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1010.fits ra=187.712 dec=12.3883 rad=12.0 tmin=501120001.0 tmax=501379201.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 2.90
user 2.68
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/757536/ft1_filtered_4FGL_J1230.8+1223_daily_bin1010.fits" evtable="EVENTS" scfile=/scratch/kocevski/757536/ft2_4FGL_J1230.8+1223_daily_bin1010.fits sctable="SC_DATA" outfile=/scratch/kocevski/757536/ltcube_501120001_501379201_4FGL_J1230.8+1223_daily_bin1010.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/757536/ft2_4FGL_J1230.8+1223_daily_bin1010.fits
.....................!
real 14.05
user 13.72
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/757536/ft1_filtered_4FGL_J1230.8+1223_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/757536/ft2_4FGL_J1230.8+1223_daily_bin1010.fits sctable="SC_DATA" expcube=/scratch/kocevski/757536/ltcube_501120001_501379201_4FGL_J1230.8+1223_daily_bin1010.fits outfile=/scratch/kocevski/757536/expmap_501120001_501379201_4FGL_J1230.8+1223_daily_bin1010.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/757536/ltcube_501120001_501379201_4FGL_J1230.8+1223_daily_bin1010.fits
.....................!
real 155.50
user 151.32
sys 3.84

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/757536/ft1_filtered_4FGL_J1230.8+1223_daily_bin1010.fits scfile=/scratch/kocevski/757536/ft2_4FGL_J1230.8+1223_daily_bin1010.fits outfile=/scratch/kocevski/757536/cmap_501120001_501379201_4FGL_J1230.8+1223_daily_bin1010.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.49
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/757536/ft1_filtered_4FGL_J1230.8+1223_daily_bin1010.fits scfile=/scratch/kocevski/757536/ft2_4FGL_J1230.8+1223_daily_bin1010.fits outfile=/scratch/kocevski/757536/cmap_HighResolution_501120001_501379201_4FGL_J1230.8+1223_daily_bin1010.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.49
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.7741       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20450E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7655       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.449       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1459       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8895       1.0000         .10000E-03   10000.    
    11 'norm      '    2.4117       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .24004       1.0000         .10000E-03   10000.    
    14 'norm      '    21.314       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12199E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.5578       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .23897E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    35.065       1.0000         .10000E-03   10000.    
    19 'norm      '    8.4224       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.8623       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .98213       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1229       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=   6998.773     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     3086 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3322       -.55606E-07** at limit **
   2  Prefactor     .10000E-03    36.069       -.60038E-06** at limit **
   3  Prefactor     6.7720        10.278        .93865E-06   -.24924E-03
   4  Prefactor     .10000E-03    53.967        .31374E-04** at limit **
   5  Prefactor     2.7650        3.2908        .27679E-06   -.11185E-03
   6  Prefactor     10.605        144.94       -.70207E-06   -.20356E-04
   7  Prefactor     .10000E-03    25.087       -.14578E-06** at limit **
   8  Prefactor     .10000E-03    1.4712       -.20758E-06** at limit **
   9  Prefactor     1.1459        2.6404        .11395E-05   -.15949E-03
  10  Prefactor     4.8683        27.477       -.13490E-05   -.32173E-04
  11  norm          2.4113        5.2898        .17273E-05   -.49915E-04
  12  Prefactor     .10000E-03    39.232       -.75078E-06** at limit **
  13  norm          .23998        .21441        .51923E-07   -.17501E-03
  14  norm          21.346        45.227       -.27209E-05    .48608E-04
  15  Prefactor     .10000E-03    84.768       -.60980E-06** at limit **
  16  norm          2.5576        .77134       -.65510E-07   -.60483E-03
  17  Prefactor     .10011E-03    6.0671        .23884E-05** at limit **
  18  Prefactor     35.109        29.007       -.19755E-05   -.34569E-03
  19  norm          8.4222        2.3991        .21003E-07   -.28423E-03
  20  Prefactor     .10000E-03    47.261        .18398E-06** at limit **
  21  Prefactor     .10000E-03    12.946       -.73968E-07** at limit **
  22  Prefactor     .10000E-03    1.6855       -.54031E-07** at limit **
  23  Prefactor     .10000E-03    7.1664       -.19618E-06** at limit **
  24  Prefactor     5.8585        11.947        .94139E-06   -.34379E-04
  25  Normalizat    .98212        .20083       -.35700E-05   -.51567E-03
  26  Prefactor     1.1230        .16959        .14174E-05   -.74861E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.77203
  Prefactor  = 0.000100001
  Prefactor  = 2.76497
  Prefactor  = 10.6048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.1459
  Prefactor  = 4.86833
  norm       = 2.41134
  Prefactor  = 0.0001
  norm       = 0.239984
  norm       = 21.3456
  Prefactor  = 0.0001
  norm       = 2.55764
  Prefactor  = 0.000100111
  Prefactor  = 35.1089
  norm       = 8.42218
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.85849
  Normalizat = 0.982123
  Prefactor  = 1.12304
 **********
 **   18 **HESSE 
 **********

 FCN=   6998.773     FROM HESSE     STATUS=OK           456 CALLS     3542 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    36.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.7720        10.260        .15416E-03   -1.5187    
   4  Prefactor     .10000E-03    53.459        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7650        3.2779        .15883E-03   -1.5375    
   6  Prefactor     10.605        141.83        .12395E-03   -1.5057    
   7  Prefactor     .10000E-03    25.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.4974        .19734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1459        2.6070        .19312E-03   -1.5494    
  10  Prefactor     4.8683        27.067        .18190E-03   -1.5267    
  11  norm          2.4113        5.1409        .19671E-03   -1.5397    
  12  Prefactor     .10000E-03    39.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .23998        .20468        .34457E-03   -1.5610    
  14  norm          21.346        44.589        .86757E-04   -1.4784    
  15  Prefactor     .10000E-03    84.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.5576        .76691        .35125E-04   -1.5388    
  17  Prefactor     .10011E-03    30.580        .36883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     35.109        27.561        .67675E-04   -1.4522    
  19  norm          8.4222        2.3973        .64404E-04   -1.5127    
  20  Prefactor     .10000E-03    47.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.6875        .10607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.2404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.8585        11.965        .16586E-03   -1.5224    
  25  Normalizat    .98212        .23378        .28358E-03   -.93632    
  26  Prefactor     1.1230        .19911        .24588E-03   -.88733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.43715e-09
Minuit parameter uncertainties:
  1  7.3792e-06
  2  0.00033908
  3  10.2623
  4  0.000354393
  5  3.27815
  6  77.7909
  7  9.0739e-05
  8  7.19188e-06
  9  2.60725
  10  22.9739
  11  5.14188
  12  0.000176224
  13  0.204679
  14  44.659
  15  0.00029277
  16  0.766914
  17  0.00369483
  18  27.5714
  19  2.39734
  20  0.000320253
  21  3.4513e-06
  22  1.71862e-06
  23  1.06359e-05
  24  11.9703
  25  0.234028
  26  0.199238
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.123e+00  1.992e-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:  9.821e-01  2.340e-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.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/757536/likelihoodResults_501120001_501379201_4FGL_J1230.8+1223_daily_bin1010.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) = 6998.77359079
delta logL = -0.000154835337526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6998.77359077
delta logL = -0.000154814963935

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96343E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0573       1.0000          .0000       10.000    
     3 'Normalizat'    .98213       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1230       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=   6998.773     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      215 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .11267        .90714E-01** at limit **
   2  Index         2.0794        8.4453        .50000       -.48739E-05
   3  Normalizat    .98212        .65538E-03    .45943E-01    .10158E-03
   4  Prefactor     1.1230        .60597E-03    .55609E-01    .12366E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.07939
  Normalizat = 0.982122
  Prefactor  = 1.12305
 **********
 **   18 **HESSE 
 **********

 FCN=   6998.773     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      250 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    62.578        .38436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0794        7.1479        .50000       -.62380    
   3  Normalizat    .98212        .65353E-02    .28359E-03   -.93632    
   4  Prefactor     1.1230        .60420E-02    .24588E-03   -.88733    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.28953e-08
Minuit parameter uncertainties:
  1  0.000920069
  2  138.845
  3  0.00653526
  4  0.00604196
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/757536': 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) = 6998.77343592
delta logL = 3.12929842039e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.123e+00  6.042e-03  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:  9.821e-01  6.535e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/757536/cmap_HighResolution_501120001_501379201_4FGL_J1230.8+1223_daily_bin1010.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.92e-03', job_status='DONE', photon_flux_upper_limit='6.52e-08', time_completed='2021-09-05 21:50:49.967781', job_id='757536', GAL2='1.12', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630903849.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='3.13e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1010' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:50:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 757536: <4FGL_J1230.8+1223_daily_bin1010> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1010> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 21:35:32 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:36:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 21:36:20 2021
Terminated at Sun Sep  5 21:50:50 2021
Results reported at Sun Sep  5 21:50:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1010 187.712 12.3883 501120001 501379201 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 :                                   641.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             261.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            918 sec.

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

