/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 5 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 = 7569
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1230.2+2517_daily_bin195
RA = 187.56, Dec = 25.2983
tmin = 289872001, tmax = 290131201
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='735535', job_status='RUN', time_executed='2021-09-05 20:30:54.460695', time_epoch_executed='1630899054.46' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='195'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/735535

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/735535/ft1_4FGL_J1230.2+2517_daily_bin195.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/735535/ft2_4FGL_J1230.2+2517_daily_bin195.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/735535/ft1_4FGL_J1230.2+2517_daily_bin195.fits outfile=/scratch/kocevski/735535/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin195.fits ra=187.56 dec=25.2983 rad=12.0 tmin=289872001.0 tmax=290131201.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.61
user 3.31
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/735535/ft2_4FGL_J1230.2+2517_daily_bin195.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/735535/ft2_4FGL_J1230.2+2517_daily_bin195.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/735535/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin195.fits evtable="EVENTS" outfile="/scratch/kocevski/735535/ft1_filtered_4FGL_J1230.2+2517_daily_bin195.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.53
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/735535/ft1_filtered_4FGL_J1230.2+2517_daily_bin195.fits" evtable="EVENTS" scfile=/scratch/kocevski/735535/ft2_4FGL_J1230.2+2517_daily_bin195.fits sctable="SC_DATA" outfile=/scratch/kocevski/735535/ltcube_289872001_290131201_4FGL_J1230.2+2517_daily_bin195.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/735535/ft2_4FGL_J1230.2+2517_daily_bin195.fits
.....................!
real 16.43
user 16.05
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/735535/ft1_filtered_4FGL_J1230.2+2517_daily_bin195.fits evtable="EVENTS" scfile=/scratch/kocevski/735535/ft2_4FGL_J1230.2+2517_daily_bin195.fits sctable="SC_DATA" expcube=/scratch/kocevski/735535/ltcube_289872001_290131201_4FGL_J1230.2+2517_daily_bin195.fits outfile=/scratch/kocevski/735535/expmap_289872001_290131201_4FGL_J1230.2+2517_daily_bin195.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/735535/ltcube_289872001_290131201_4FGL_J1230.2+2517_daily_bin195.fits
.....................!
real 193.64
user 188.49
sys 4.64

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 186 point sources and 0 extended sources

Setting source of interest to:
4FGL J1230.2+2517 @ 187.56 25.2983

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/735535/ft1_filtered_4FGL_J1230.2+2517_daily_bin195.fits scfile=/scratch/kocevski/735535/ft2_4FGL_J1230.2+2517_daily_bin195.fits outfile=/scratch/kocevski/735535/cmap_289872001_290131201_4FGL_J1230.2+2517_daily_bin195.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.56 yref=25.2983 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/735535/ft1_filtered_4FGL_J1230.2+2517_daily_bin195.fits scfile=/scratch/kocevski/735535/ft2_4FGL_J1230.2+2517_daily_bin195.fits outfile=/scratch/kocevski/735535/cmap_HighResolution_289872001_290131201_4FGL_J1230.2+2517_daily_bin195.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.56 yref=25.2983 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/735535/ft1_filtered_4FGL_J1230.2+2517_daily_bin195.fits evtable="EVENTS" scfile=/scratch/kocevski/735535/ft2_4FGL_J1230.2+2517_daily_bin195.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/735535/Model_4FGL_J1230.2+2517_daily_bin195.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/735535/ft1_filtered_4FGL_J1230.2+2517_daily_bin195.fits.....................!
real 57.22
user 55.40
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/735535/ft1_filtered_4FGL_J1230.2+2517_daily_bin195.fits', '/scratch/kocevski/735535/ft2_4FGL_J1230.2+2517_daily_bin195.fits', expMap='/scratch/kocevski/735535/expmap_289872001_290131201_4FGL_J1230.2+2517_daily_bin195.fits', expCube='/scratch/kocevski/735535/ltcube_289872001_290131201_4FGL_J1230.2+2517_daily_bin195.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/735535/Model_4FGL_J1230.2+2517_daily_bin195.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1230.2+2517'

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  6.557e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.001e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  5.434e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  8.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/735535/ft1_filtered_4FGL_J1230.2+2517_daily_bin195.fits
Spacecraft file(s): /scratch/kocevski/735535/ft2_4FGL_J1230.2+2517_daily_bin195.fits
Exposure map: /scratch/kocevski/735535/expmap_289872001_290131201_4FGL_J1230.2+2517_daily_bin195.fits
Exposure cube: /scratch/kocevski/735535/ltcube_289872001_290131201_4FGL_J1230.2+2517_daily_bin195.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/735535/Model_4FGL_J1230.2+2517_daily_bin195.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) = 6419.6008845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.034       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11547E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.6434       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9943       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.1136       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7665       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4855       1.0000         .10000E-03   10000.    
    10 'norm      '    4.8167       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3726       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11311E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.0108       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6410       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.483       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .12678       1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.507       1.0000         .10000E-03   10000.    
    23 'norm      '    2.0393       1.0000         .10000E-03   10000.    
    24 'norm      '    8.9392       1.0000         .10000E-03   10000.    
    25 'norm      '    .84440       1.0000         .10000E-03   10000.    
    26 'norm      '    25.812       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .75640       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2838       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6419.500     FROM MIGRAD    STATUS=CONVERGED    713 CALLS     3061 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.031         .0000    ** at limit **
   2  Prefactor     13.035        14.422         .0000        .69497E-04
   3  Prefactor     .10000E-03    .46638         .0000    ** at limit **
   4  Prefactor     .10002E-03    95.662         .0000    ** at limit **
   5  norm          5.6430        1.5916         .0000        .76514E-05
   6  Prefactor     3.9945        3.6177         .0000        .47114E-03
   7  Prefactor     8.1088        17.964         .0000       -.42704E-03
   8  Prefactor     2.7669        2.7173         .0000        .61018E-03
   9  Prefactor     1.4856        3.2020         .0000        .38229E-03
  10  norm          4.8159        3.2208         .0000       -.85900E-03
  11  Prefactor     .10000E-03    2.6775         .0000    ** at limit **
  12  Prefactor     1.3728        2.0960         .0000        .68979E-03
  13  Prefactor     .10000E-03    1.1238         .0000    ** at limit **
  14  Prefactor     .10000E-03    6.9649         .0000    ** at limit **
  15  norm          2.0108        .38056         .0000        .69061E-04
  16  norm          1.6411        1.9628         .0000       -.16260E-03
  17  Prefactor     12.481        8.8519         .0000       -.48416E-04
  18  Prefactor     .10000E-03    33.115         .0000    ** at limit **
  19  Prefactor     .10000E-03    17.278         .0000    ** at limit **
  20  Prefactor     .10000E-03    4.3387         .0000    ** at limit **
  21  norm          .13711        2.1227         .0000        .12282E-02
  22  Prefactor     19.490        18.236         .0000       -.14103E-02
  23  norm          2.0395        2.2460         .0000        .97854E-04
  24  norm          8.9373        10.308         .0000       -.55841E-02
  25  norm          .84926        51.327         .0000        .33219E-01
  26  norm          25.813        18.352         .0000        .18809E-03
  27  Normalizat    .75634        .17996         .0000        .63538E-04
  28  Prefactor     1.2838        .19738         .0000        .30694E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.0346
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  norm       = 5.64305
  Prefactor  = 3.99449
  Prefactor  = 8.10875
  Prefactor  = 2.76688
  Prefactor  = 1.48558
  norm       = 4.81591
  Prefactor  = 0.0001
  Prefactor  = 1.3728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.01084
  norm       = 1.64105
  Prefactor  = 12.4812
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.137113
  Prefactor  = 19.4899
  norm       = 2.03945
  norm       = 8.93732
  norm       = 0.849264
  norm       = 25.8134
  Normalizat = 0.756341
  Prefactor  = 1.28382
 **********
 **   18 **HESSE 
 **********

 FCN=   6419.500     FROM HESSE     STATUS=OK           525 CALLS     3586 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.035        14.404        .11095E-03   -1.4986    
   3  Prefactor     .10000E-03    .46964        .53419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    98.084        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.6430        1.5943        .51053E-04   -1.5233    
   6  Prefactor     3.9945        3.6090        .13709E-03   -1.5308    
   7  Prefactor     8.1088        17.951        .14075E-03   -1.5138    
   8  Prefactor     2.7669        2.6767        .11830E-03   -1.5375    
   9  Prefactor     1.4856        3.1473        .18959E-03   -1.5464    
  10  norm          4.8159        3.2193        .10217E-03   -1.5269    
  11  Prefactor     .10000E-03    2.6898        .12803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.3728        2.0683        .12534E-03   -1.5474    
  13  Prefactor     .10000E-03    2.7546        .16251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.2243        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0108        .38112        .20340E-04   -1.5424    
  16  norm          1.6411        1.9574        .11956E-03   -1.5452    
  17  Prefactor     12.481        8.8208        .11338E-03   -1.5001    
  18  Prefactor     .10000E-03    33.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.3839        .16293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .13711        18.230        .21600E-02   -1.5634    
  22  Prefactor     19.490        18.782        .45343E-03   -1.4825    
  23  norm          2.0395        2.2363        .12238E-03   -1.5422    
  24  norm          8.9373        8.3139        .11478E-03   -1.5110    
  25  norm          .84926        34.806        .24487E-02   -1.5524    
  26  norm          25.813        18.351        .78848E-04   -1.4691    
  27  Normalizat    .75634        .21031        .29060E-03   -1.0171    
  28  Prefactor     1.2838        .23273        .26318E-03   -.83789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98183e-08
Minuit parameter uncertainties:
  1  5.16029e-05
  2  14.4083
  3  4.29839e-07
  4  0.00260918
  5  1.5943
  6  3.6092
  7  17.9634
  8  2.67678
  9  3.14768
  10  3.21938
  11  4.71963e-05
  12  2.06839
  13  3.57512e-05
  14  2.84607e-06
  15  0.381121
  16  1.95749
  17  8.82176
  18  0.000466682
  19  0.000260029
  20  3.64563e-06
  21  3.16185
  22  18.7879
  23  2.23634
  24  8.31501
  25  10.8799
  26  18.3555
  27  0.210531
  28  0.232915
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.641e+00  1.957e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.001e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  5.434e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  8.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.284e+00  2.329e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  7.563e-01  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.89
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 9.64e-09 +/- 1.15e-08
Energy Flux (Fixed Index): 5.73e-06 +/- 6.84e-06

TS (Fixed Index): 1.89
Ra Dec: 187.560 25.298
Photon Flux Upper Limit: 5.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/735535/likelihoodResults_289872001_290131201_4FGL_J1230.2+2517_daily_bin195.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) = 6419.2950342
delta logL = 0.20506106261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6419.28742808
delta logL = 0.212667185948

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4095       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4156       1.0000          .0000       5.0000    
     3 'Normalizat'    .76133       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2805       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6419.287     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4102        1.6225        .91245E-02   -.19912E-03
   2  alpha         1.4156        .57887        .47606       -.32460E-04
   3  Normalizat    .76129        .16940        .65488E-01    .23998E-04
   4  Prefactor     1.2806        .19530        .59574E-01    .33764E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.41016
  alpha      = 1.41559
  Normalizat = 0.761292
  Prefactor  = 1.28056
 **********
 **   18 **HESSE 
 **********

 FCN=   6419.287     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4102        1.8063        .10671E-03   -1.5470    
   2  alpha         1.4156        .77471        .20286E-01   -.44866    
   3  Normalizat    .76129        .19873        .28973E-03   -1.0152    
   4  Prefactor     1.2806        .22944        .26344E-03   -.83887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08732e-09
Minuit parameter uncertainties:
  1  1.80632
  2  0.790858
  3  0.198923
  4  0.229624
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/735535': 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): 0
logL (Free Index) = 6419.28742796
delta logL = 0.212667307296

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.410e+00  1.806e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  1.416e+00  7.909e-01  0.000e+00  5.000e+00 ( 1.000e+00)
327         beta:  5.434e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  8.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.281e+00  2.296e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  7.613e-01  1.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.32
Ra Dec: 187.560 25.298
Photon Index (Free Index): 1.42 +/- 0.79
Photon Flux (Free Index): 5.43e-09 +/- 7.49e-09
Energy Flux (Free Index): 1.42e-05 +/- 2.75e-05

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/735535/cmap_HighResolution_289872001_290131201_4FGL_J1230.2+2517_daily_bin195.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.99e-05', comment='SUCCESS', photon_flux='9.64e-09', energy_flux2='1.42e-05', photon_flux_error='1.15e-08', dlogl='2.13e-01', energy_flux='5.73e-06', photon_flux2='5.43e-09', job_status='DONE', time_completed='2021-09-05 20:44:27.465620', photon_index_error2='0.79', photon_index2='1.42', ts='1.89', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', photon_flux_upper_limit='5.03e-08', energy_flux_error2='2.75e-05', EG='0.76', time_epoch_completed='1630899867.47', return_code='0', job_id='735535', GAL2='1.28', EG2='0.76', return_code2='0', energy_flux_error='6.84e-06', photon_flux_error2='7.49e-09', ts2='2.32', photon_index='2.00' WHERE bin_id='195' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:44:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 735535: <4FGL_J1230.2+2517_daily_bin195> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin195> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 20:30:24 2021
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:30:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 20:30:25 2021
Terminated at Sun Sep  5 20:44:28 2021
Results reported at Sun Sep  5 20:44:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin195 187.56 25.2983 289872001 290131201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1230.2+2517 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   809.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            844 sec.

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

