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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1222
RA = 187.712, Dec = 12.3883
tmin = 556070401, tmax = 556329601
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='757848', job_status='RUN', time_executed='2021-09-05 21:41:40.067109', time_epoch_executed='1630903300.07' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1222'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/757848

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/757848/ft1_4FGL_J1230.8+1223_daily_bin1222.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/757848/ft2_4FGL_J1230.8+1223_daily_bin1222.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/757848/ft1_4FGL_J1230.8+1223_daily_bin1222.fits outfile=/scratch/kocevski/757848/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1222.fits ra=187.712 dec=12.3883 rad=12.0 tmin=556070401.0 tmax=556329601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.74
user 3.51
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/757848/ft1_filtered_4FGL_J1230.8+1223_daily_bin1222.fits" evtable="EVENTS" scfile=/scratch/kocevski/757848/ft2_4FGL_J1230.8+1223_daily_bin1222.fits sctable="SC_DATA" outfile=/scratch/kocevski/757848/ltcube_556070401_556329601_4FGL_J1230.8+1223_daily_bin1222.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/757848/ft2_4FGL_J1230.8+1223_daily_bin1222.fits
.....................!
real 13.28
user 12.94
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/757848/ft1_filtered_4FGL_J1230.8+1223_daily_bin1222.fits evtable="EVENTS" scfile=/scratch/kocevski/757848/ft2_4FGL_J1230.8+1223_daily_bin1222.fits sctable="SC_DATA" expcube=/scratch/kocevski/757848/ltcube_556070401_556329601_4FGL_J1230.8+1223_daily_bin1222.fits outfile=/scratch/kocevski/757848/expmap_556070401_556329601_4FGL_J1230.8+1223_daily_bin1222.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/757848/ltcube_556070401_556329601_4FGL_J1230.8+1223_daily_bin1222.fits
.....................!
real 191.19
user 186.36
sys 4.20

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/757848/ft1_filtered_4FGL_J1230.8+1223_daily_bin1222.fits scfile=/scratch/kocevski/757848/ft2_4FGL_J1230.8+1223_daily_bin1222.fits outfile=/scratch/kocevski/757848/cmap_556070401_556329601_4FGL_J1230.8+1223_daily_bin1222.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.58
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/757848/ft1_filtered_4FGL_J1230.8+1223_daily_bin1222.fits scfile=/scratch/kocevski/757848/ft2_4FGL_J1230.8+1223_daily_bin1222.fits outfile=/scratch/kocevski/757848/cmap_HighResolution_556070401_556329601_4FGL_J1230.8+1223_daily_bin1222.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=187.712 yref=12.3883 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

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

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 567.121982119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    88.055       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10732E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12209E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10529E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11188E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.6547       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    170.02       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .39832       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10637E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .90088E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13233E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12983E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81179       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=   566.6121     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     3271 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     87.867        108.50        .10514E-06    .10290E-04
   2  Prefactor     .10000E-03    154.58        .41409E-06** at limit **
   3  Prefactor     .10000E-03    10.038        .54438E-07** at limit **
   4  Prefactor     .10000E-03    19.465       -.41098E-07** at limit **
   5  Prefactor     .10000E-03    26.720       -.96187E-06** at limit **
   6  Prefactor     .10000E-03    103.09       -.30917E-07** at limit **
   7  Prefactor     .10000E-03    59.160       -.13129E-06** at limit **
   8  Prefactor     .10000E-03    22.110       -.75346E-06** at limit **
   9  Prefactor     .10000E-03    14.630       -.29601E-06** at limit **
  10  Prefactor     .10000E-03    106.21       -.51637E-06** at limit **
  11  norm          9.6622        10.796        .37246E-06    .79842E-03
  12  Prefactor     .10000E-03    53.871       -.53758E-08** at limit **
  13  norm          .10000E-03    3.0173        .58190E-08** at limit **
  14  norm          170.09        147.81       -.11078E-05    .17205E-03
  15  Prefactor     .10000E-03    250.69       -.28419E-07** at limit **
  16  norm          .40016        1.1415        .22535E-06    .81316E-03
  17  Prefactor     .10000E-03    52.839       -.23729E-06** at limit **
  18  Prefactor     .10000E-03    842.81       -.21342E-05** at limit **
  19  norm          .27911E-01    4.0933       -.15296E-06    .17627E-04
  20  Prefactor     .10000E-03    58.392        .76478E-08** at limit **
  21  Prefactor     .10000E-03    197.30       -.89377E-08** at limit **
  22  Prefactor     .10001E-03    9390.6       -.19925E-05** at limit **
  23  Prefactor     .10000E-03    61.020       -.18754E-06** at limit **
  24  Prefactor     .10000E-03    90.436       -.79934E-07** at limit **
  25  Normalizat    .10000E-01    .63146       -.30094E-04** at limit **
  26  Prefactor     .81365        .21597        .43381E-05    .40611E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 87.8672
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.66218
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 170.088
  Prefactor  = 0.0001
  norm       = 0.400155
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0279113
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.813646
 **********
 **   18 **HESSE 
 **********

 FCN=   566.6121     FROM HESSE     STATUS=OK           440 CALLS     3711 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     87.867        108.99        .21408E-03   -1.3830    
   2  Prefactor     .10000E-03    154.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.043        .73684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.467        .10264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.554        .11985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    103.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    59.256        .17900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.179        .10918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.662        .88932E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    106.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.6622        10.832        .61316E-04   -1.5086    
  12  Prefactor     .10000E-03    53.878        .17084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.0175        .40398E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          170.09        147.75        .15471E-03   -1.3092    
  15  Prefactor     .10000E-03    250.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .40016        1.0881        .34054E-04   -1.5581    
  17  Prefactor     .10000E-03    52.964        .16917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    846.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .27911E-01    189.24        .83430E-03   -1.5675    
  20  Prefactor     .10000E-03    58.406        .17787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    197.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    9390.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    61.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    90.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    1.1844        .97410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .81365        .25486        .16628E-03   -.99227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11581e-09
Minuit parameter uncertainties:
  1  109.234
  2  0.00015369
  3  1.64209e-05
  4  1.71389e-05
  5  0.000468978
  6  2.29778e-05
  7  8.28675e-05
  8  0.000317757
  9  9.60561e-05
  10  0.00042187
  11  10.8346
  12  4.94738e-05
  13  1.84322e-06
  14  148.069
  15  9.06421e-05
  16  1.08815
  17  0.000238735
  18  0.000645003
  19  4.60283
  20  6.79316e-05
  21  0.000294087
  22  0.024362
  23  0.000102263
  24  3.16095e-05
  25  0.000108759
  26  0.25523
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  2.387e-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:  8.136e-01  2.552e-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.088e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 187.712 12.388
Photon Flux Upper Limit: 3.68e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.77e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/757848/likelihoodResults_556070401_556329601_4FGL_J1230.8+1223_daily_bin1222.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) = 566.612159909
delta logL = -9.35470529839e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 566.612069488
delta logL = -3.12547911108e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5809       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81370       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=   566.6121     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      273 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.229        .90712E-02** at limit **
   2  Index         2.6203        5.9167        .50000       -.41295E-05
   3  Normalizat    .10000E-01    .33043E-03    .17758    ** at limit **
   4  Prefactor     .81364        .53718E-02    .43895E-01    .87581E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.62027
  Normalizat = 0.01
  Prefactor  = 0.813641
 **********
 **   18 **HESSE 
 **********

 FCN=   566.6121     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      304 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1665.3        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6203        8.6140        .50000       -.49604    
   3  Normalizat    .10000E-01    .46256E-01    .97338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .81364        .37945E-01    .16627E-03   -.99227    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.38872e-07
Minuit parameter uncertainties:
  1  0.000991903
  2  625.304
  3  4.116e-06
  4  0.0379461
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/757848': 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) = 566.612065934
delta logL = 4.2883164042e-07

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  9.919e-04  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.620e+00  6.253e+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:  8.136e-01  3.795e-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.000e-02  4.116e-06  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/757848/cmap_HighResolution_556070401_556329601_4FGL_J1230.8+1223_daily_bin1222.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.77e-02', job_status='DONE', photon_flux_upper_limit='3.68e-07', time_completed='2021-09-05 21:48:30.607037', job_id='757848', GAL2='0.81', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630903710.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='4.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1222' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:48:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 757848: <4FGL_J1230.8+1223_daily_bin1222> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1222> 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) <bullet0091>, 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:31 2021
Results reported at Sun Sep  5 21:48:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1222 187.712 12.3883 556070401 556329601 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 :                                   358.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             271.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            755 sec.

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

