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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin936
RA = 187.712, Dec = 12.3883
tmin = 481939201, tmax = 482198401
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='757421', job_status='RUN', time_executed='2021-09-05 21:36:02.016237', time_epoch_executed='1630902962.02' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='936'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/757421

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/757421/ft1_4FGL_J1230.8+1223_daily_bin936.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/757421/ft2_4FGL_J1230.8+1223_daily_bin936.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/757421/ft1_4FGL_J1230.8+1223_daily_bin936.fits outfile=/scratch/kocevski/757421/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin936.fits ra=187.712 dec=12.3883 rad=12.0 tmin=481939201.0 tmax=482198401.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.64
user 3.38
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/757421/ft1_filtered_4FGL_J1230.8+1223_daily_bin936.fits evtable="EVENTS" scfile=/scratch/kocevski/757421/ft2_4FGL_J1230.8+1223_daily_bin936.fits sctable="SC_DATA" expcube=/scratch/kocevski/757421/ltcube_481939201_482198401_4FGL_J1230.8+1223_daily_bin936.fits outfile=/scratch/kocevski/757421/expmap_481939201_482198401_4FGL_J1230.8+1223_daily_bin936.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/757421/ltcube_481939201_482198401_4FGL_J1230.8+1223_daily_bin936.fits
.....................!
real 192.12
user 187.48
sys 4.19

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

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

This is gtbin version HEAD
real 0.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/757421/ft1_filtered_4FGL_J1230.8+1223_daily_bin936.fits scfile=/scratch/kocevski/757421/ft2_4FGL_J1230.8+1223_daily_bin936.fits outfile=/scratch/kocevski/757421/cmap_HighResolution_481939201_482198401_4FGL_J1230.8+1223_daily_bin936.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.58
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.862       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0742       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.2720       1.0000         .10000E-03   10000.    
    12 'Prefactor '    39.134       1.0000         .10000E-03   10000.    
    13 'norm      '    .38830       1.0000         .10000E-03   10000.    
    14 'norm      '    12.908       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.9085       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10500E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10535E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .33753E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    50.771       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18514E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .92788       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .96346       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87554       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=   6027.677     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     3145 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.294        .17889E-05** at limit **
   2  Prefactor     .10000E-03    35.090       -.96129E-06** at limit **
   3  Prefactor     .10000E-03    3.0901        .36880E-07** at limit **
   4  Prefactor     14.868        19.362        .11173E-05   -.89335E-04
   5  Prefactor     .10000E-03    3.3840        .28959E-06** at limit **
   6  Prefactor     .10000E-03    47.190       -.11041E-05** at limit **
   7  Prefactor     .10000E-03    15.354        .14565E-06** at limit **
   8  Prefactor     2.0713        3.3831       -.40475E-06   -.65098E-03
   9  Prefactor     .10000E-03    1.7720        .61691E-06** at limit **
  10  Prefactor     .10000E-03    10.002       -.26672E-06** at limit **
  11  norm          3.2722        3.4373        .89237E-07    .20075E-03
  12  Prefactor     39.086        31.228       -.11341E-05    .18203E-03
  13  norm          .38836        .22318        .36289E-07   -.63751E-03
  14  norm          12.915        22.955        .60247E-06   -.54446E-04
  15  Prefactor     .10000E-03    39.332        .11960E-05** at limit **
  16  norm          3.9084        .75262        .16481E-07   -.11453E-02
  17  Prefactor     .10000E-03    10.186        .81874E-06** at limit **
  18  Prefactor     .10000E-03    15.241        .29460E-06** at limit **
  19  norm          .10000E-03    .69260        .27481E-06** at limit **
  20  Prefactor     .10000E-03    11.665       -.26370E-06** at limit **
  21  Prefactor     50.660        48.525       -.19198E-05    .12487E-03
  22  Prefactor     .10000E-03    2.0305        .38123E-07** at limit **
  23  Prefactor     .10000E-03    15.492       -.58148E-05** at limit **
  24  Prefactor     .87739        50.351        .15116E-04   -.17896E-04
  25  Normalizat    .96332        .19477       -.26830E-05   -.31915E-03
  26  Prefactor     .87548        .15689       -.15005E-06   -.48357E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8682
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.07126
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.27219
  Prefactor  = 39.0862
  norm       = 0.388355
  norm       = 12.9146
  Prefactor  = 0.0001
  norm       = 3.90837
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.66
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.877389
  Normalizat = 0.963323
  Prefactor  = 0.875479
 **********
 **   18 **HESSE 
 **********

 FCN=   6027.677     FROM HESSE     STATUS=OK           452 CALLS     3597 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    35.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.0950        .13328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.868        19.385        .10389E-03   -1.4937    
   5  Prefactor     .10000E-03    3.4892        .27903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    47.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.0713        3.0915        .15528E-03   -1.5420    
   9  Prefactor     .10000E-03    7.1154        .18063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.9950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.2722        3.4263        .12943E-03   -1.5346    
  12  Prefactor     39.086        30.927        .32036E-03   -1.4457    
  13  norm          .38836        .22146        .26562E-04   -1.5583    
  14  norm          12.915        22.912        .11149E-03   -1.4989    
  15  Prefactor     .10000E-03    39.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.9084        .74987        .26829E-04   -1.5313    
  17  Prefactor     .10000E-03    10.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.5676        .12239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     50.660        48.228        .56283E-04   -1.4283    
  22  Prefactor     .10000E-03    2.0320        .10805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    50.903        .37803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .87739        62.137        .50200E-02   -1.5521    
  25  Normalizat    .96332        .22384        .25896E-03   -.94269    
  26  Prefactor     .87548        .18215        .23839E-03   -.97003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76838e-08
Minuit parameter uncertainties:
  1  0.000130265
  2  0.000257687
  3  3.84516e-06
  4  19.3935
  5  2.8424e-05
  6  0.000211376
  7  3.31973e-05
  8  3.09178
  9  4.45261e-05
  10  7.47435e-05
  11  3.4265
  12  30.9397
  13  0.221465
  14  22.928
  15  0.000190418
  16  0.749875
  17  6.61878e-06
  18  2.14461e-05
  19  3.81233e-05
  20  4.00994e-05
  21  48.2647
  22  2.70055e-06
  23  0.000704215
  24  14.7824
  25  0.224053
  26  0.182277
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  6.619e-06  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.755e-01  1.823e-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.633e-01  2.241e-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.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/757421/likelihoodResults_481939201_482198401_4FGL_J1230.8+1223_daily_bin936.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): 0
logL (Free Index) = 6027.67708147
delta logL = -0.000459522984784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6027.67662672
delta logL = -4.77356479678e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15180E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0961       1.0000          .0000       10.000    
     3 'Normalizat'    .96287       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87589       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=   6027.677     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      203 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    236.93        .90712E-02** at limit **
   2  Index         2.1339        8.6426        .50000       -.28870E-04
   3  Normalizat    .96332        .21013E-01    .45700E-01   -.34560E-05
   4  Prefactor     .87548        .18629E-01    .44697E-01   -.80634E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.13387
  Normalizat = 0.963322
  Prefactor  = 0.875481
 **********
 **   18 **HESSE 
 **********

 FCN=   6027.677     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      236 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6165.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1339        5.6522        .50000       -.61044    
   3  Normalizat    .96332        .11911        .25896E-03   -.94270    
   4  Prefactor     .87548        .10555        .23839E-03   -.97003    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.06358e-07
Minuit parameter uncertainties:
  1  0.00296785
  2  60.5528
  3  0.119139
  4  0.10557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/757421': 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) = 6027.67662141
delta logL = 5.36022525921e-07

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  2.968e-03  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.134e+00  6.055e+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:  8.755e-01  1.056e-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.633e-01  1.191e-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/757421/cmap_HighResolution_481939201_482198401_4FGL_J1230.8+1223_daily_bin936.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-03', job_status='DONE', photon_flux_upper_limit='6.21e-08', time_completed='2021-09-05 21:48:09.318869', job_id='757421', GAL2='0.88', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630903689.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='5.36e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='936' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:48:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 757421: <4FGL_J1230.8+1223_daily_bin936> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin936 187.712 12.3883 481939201 482198401 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 :                                   722.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            766 sec.

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

