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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin478
RA = 187.712, Dec = 12.3883
tmin = 363225601, tmax = 363484801
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='751755', job_status='RUN', time_executed='2021-09-05 21:17:58.413712', time_epoch_executed='1630901878.41' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/751755

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/751755/ft1_4FGL_J1230.8+1223_daily_bin478.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/751755/ft2_4FGL_J1230.8+1223_daily_bin478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/751755/ft1_4FGL_J1230.8+1223_daily_bin478.fits outfile=/scratch/kocevski/751755/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin478.fits ra=187.712 dec=12.3883 rad=12.0 tmin=363225601.0 tmax=363484801.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 8.87
user 6.67
sys 0.33

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/751755/ft1_filtered_4FGL_J1230.8+1223_daily_bin478.fits" evtable="EVENTS" scfile=/scratch/kocevski/751755/ft2_4FGL_J1230.8+1223_daily_bin478.fits sctable="SC_DATA" outfile=/scratch/kocevski/751755/ltcube_363225601_363484801_4FGL_J1230.8+1223_daily_bin478.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/751755/ft2_4FGL_J1230.8+1223_daily_bin478.fits
.....................!
real 18.30
user 16.88
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/751755/ft1_filtered_4FGL_J1230.8+1223_daily_bin478.fits evtable="EVENTS" scfile=/scratch/kocevski/751755/ft2_4FGL_J1230.8+1223_daily_bin478.fits sctable="SC_DATA" expcube=/scratch/kocevski/751755/ltcube_363225601_363484801_4FGL_J1230.8+1223_daily_bin478.fits outfile=/scratch/kocevski/751755/expmap_363225601_363484801_4FGL_J1230.8+1223_daily_bin478.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/751755/ltcube_363225601_363484801_4FGL_J1230.8+1223_daily_bin478.fits
.....................!
real 198.53
user 185.84
sys 5.71

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/751755/ft1_filtered_4FGL_J1230.8+1223_daily_bin478.fits scfile=/scratch/kocevski/751755/ft2_4FGL_J1230.8+1223_daily_bin478.fits outfile=/scratch/kocevski/751755/cmap_363225601_363484801_4FGL_J1230.8+1223_daily_bin478.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 1.48
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/751755/ft1_filtered_4FGL_J1230.8+1223_daily_bin478.fits scfile=/scratch/kocevski/751755/ft2_4FGL_J1230.8+1223_daily_bin478.fits outfile=/scratch/kocevski/751755/cmap_HighResolution_363225601_363484801_4FGL_J1230.8+1223_daily_bin478.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    333.96       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11109E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .34012       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.0532       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0134       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.1679       1.0000         .10000E-03   10000.    
    10 'Prefactor '    65.679       1.0000         .10000E-03   10000.    
    11 'norm      '    .19740E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.4058       1.0000         .10000E-03   10000.    
    14 'norm      '    .10345E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.4454       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    49.108       1.0000         .10000E-03   10000.    
    19 'norm      '    1.6163       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.7876       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .26127       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=   2154.034     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3151 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.733       -.31786E-07** at limit **
   2  Prefactor     333.71        288.68        .30864E-06   -.82553E-04
   3  Prefactor     .10000E-03    15.316       -.90397E-06** at limit **
   4  Prefactor     .10000E-03    10.003       -.37832E-07** at limit **
   5  Prefactor     .34449        6.5421        .29292E-06   -.15557E-03
   6  Prefactor     .10000E-03    46.861        .34675E-08** at limit **
   7  Prefactor     8.2335        349.85       -.14612E-04    .18317E-04
   8  Prefactor     2.0127        5.6909        .14447E-06   -.12762E-03
   9  Prefactor     8.1663        8.6594       -.36024E-07   -.12119E-03
  10  Prefactor     65.669        78.807       -.67502E-05   -.27145E-03
  11  norm          .10015E-03    8.9080        .70154E-05** at limit **
  12  Prefactor     .10000E-03    23.729        .78410E-07** at limit **
  13  norm          1.4058        .57826        .10838E-07   -.33813E-03
  14  norm          .10000E-03    139.80       -.17582E-06** at limit **
  15  Prefactor     .10000E-03    134.12        .68381E-07** at limit **
  16  norm          2.4459        1.3855       -.91943E-06   -.36277E-02
  17  Prefactor     .10000E-03    14.111       -.57381E-07** at limit **
  18  Prefactor     49.099        48.193       -.13015E-06   -.58547E-04
  19  norm          1.6155        2.7587       -.30950E-06   -.51835E-03
  20  Prefactor     .10000E-03    49.495        .22334E-06** at limit **
  21  Prefactor     .10000E-03    40.031       -.34689E-06** at limit **
  22  Prefactor     .10000E-03    6.6424       -.27358E-07** at limit **
  23  Prefactor     .10000E-03    18.029       -.24433E-06** at limit **
  24  Prefactor     .10000E-03    20.460       -.12651E-06** at limit **
  25  Normalizat    1.7875        .42622       -.46501E-05   -.31328E-03
  26  Prefactor     .26144        .34642        .82246E-05   -.15244E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 333.71
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.344492
  Prefactor  = 0.0001
  Prefactor  = 8.23347
  Prefactor  = 2.01273
  Prefactor  = 8.16627
  Prefactor  = 65.6686
  norm       = 0.00010015
  Prefactor  = 0.0001
  norm       = 1.40575
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.4459
  Prefactor  = 0.0001
  Prefactor  = 49.0994
  norm       = 1.61553
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.7875
  Prefactor  = 0.261445
 **********
 **   18 **HESSE 
 **********

 FCN=   2154.034     FROM HESSE     STATUS=OK           446 CALLS     3597 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.741        .16177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     333.71        288.44        .11132E-03   -1.2034    
   3  Prefactor     .10000E-03    15.336        .17723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.005        .14339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .34449        30.264        .22507E-02   -1.5591    
   6  Prefactor     .10000E-03    46.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.2335        336.33        .14128E-03   -1.5134    
   8  Prefactor     2.0127        5.5819        .15619E-03   -1.5424    
   9  Prefactor     8.1663        8.5937        .11751E-03   -1.5136    
  10  Prefactor     65.669        79.527        .49521E-04   -1.4085    
  11  norm          .10015E-03    26.476        .22956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4058        .57995        .21701E-04   -1.5471    
  14  norm          .10000E-03    139.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    134.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.4459        1.4152        .38953E-04   -1.5395    
  17  Prefactor     .10000E-03    14.131        .17028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     49.099        48.397        .28612E-03   -1.4305    
  19  norm          1.6155        2.7164        .94068E-04   -1.5454    
  20  Prefactor     .10000E-03    49.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    40.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.6569        .11683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    18.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    20.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.7875        .44662        .22917E-03   -.69990    
  26  Prefactor     .26144        .35108        .45242E-03   -1.2460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.52603e-09
Minuit parameter uncertainties:
  1  5.58679e-06
  2  289.693
  3  0.000165967
  4  8.25992e-06
  5  6.46021
  6  4.51766e-05
  7  105.889
  8  5.5833
  9  8.59497
  10  79.6565
  11  0.00399161
  12  5.42506e-05
  13  0.579952
  14  0.000121479
  15  0.000184044
  16  1.41526
  17  6.31428e-05
  18  48.4354
  19  2.7166
  20  0.000197652
  21  0.000125919
  22  8.84075e-06
  23  2.89475e-05
  24  7.67596e-05
  25  0.44764
  26  0.353977
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  6.314e-05  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:  2.614e-01  3.540e-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.787e+00  4.476e-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: 1.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/751755/likelihoodResults_363225601_363484801_4FGL_J1230.8+1223_daily_bin478.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) = 2154.03478646
delta logL = -0.000329120163769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2154.03445732
delta logL = 2.42762325797e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0708       1.0000          .0000       10.000    
     3 'Normalizat'    1.7875       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .26144       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=   2154.034     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      214 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1480.5        .90712E-02** at limit **
   2  Index         2.0853        8.9481        .50000       -.85946E-05
   3  Normalizat    1.7875        .10546        .51845E-01    .73121E-06
   4  Prefactor     .26145        .86530E-01    .10213        .23866E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.08526
  Normalizat = 1.7875
  Prefactor  = 0.261446
 **********
 **   18 **HESSE 
 **********

 FCN=   2154.034     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      247 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    6177.0        .17166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0853        6.0267        .50000       -.62235    
   3  Normalizat    1.7875        .16593        .22918E-03   -.69990    
   4  Prefactor     .26145        .13583        .45243E-03   -1.2460    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.40569e-08
Minuit parameter uncertainties:
  1  9.71908e-05
  2  54.4452
  3  0.165979
  4  0.135993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/751755': 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) = 2154.03445728
delta logL = 5.74823388888e-08

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  9.719e-05  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.085e+00  5.445e+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:  2.614e-01  1.360e-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.788e+00  1.660e-01  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/751755/cmap_HighResolution_363225601_363484801_4FGL_J1230.8+1223_daily_bin478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', job_status='DONE', photon_flux_upper_limit='1.50e-07', time_completed='2021-09-05 21:26:26.765028', job_id='751755', GAL2='0.26', fit_tolerance='1e-08', EG2='1.79', EG='1.79', time_epoch_completed='1630902386.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.26', dlogl='5.75e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='478' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:26:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 751755: <4FGL_J1230.8+1223_daily_bin478> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin478 187.712 12.3883 363225601 363484801 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 :                                   484.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   582 sec.
    Turnaround time :                            606 sec.

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

