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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin324
RA = 187.56, Dec = 25.2983
tmin = 323308801, tmax = 323568001
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='735757', job_status='RUN', time_executed='2021-09-05 20:34:00.987319', time_epoch_executed='1630899240.99' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/735757

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/735757/ft1_4FGL_J1230.2+2517_daily_bin324.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/735757/ft2_4FGL_J1230.2+2517_daily_bin324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/735757/ft1_4FGL_J1230.2+2517_daily_bin324.fits outfile=/scratch/kocevski/735757/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin324.fits ra=187.56 dec=25.2983 rad=12.0 tmin=323308801.0 tmax=323568001.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.39
user 3.11
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/735757/ft2_4FGL_J1230.2+2517_daily_bin324.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/735757/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin324.fits evtable="EVENTS" outfile="/scratch/kocevski/735757/ft1_filtered_4FGL_J1230.2+2517_daily_bin324.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/735757/ft1_filtered_4FGL_J1230.2+2517_daily_bin324.fits" evtable="EVENTS" scfile=/scratch/kocevski/735757/ft2_4FGL_J1230.2+2517_daily_bin324.fits sctable="SC_DATA" outfile=/scratch/kocevski/735757/ltcube_323308801_323568001_4FGL_J1230.2+2517_daily_bin324.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/735757/ft2_4FGL_J1230.2+2517_daily_bin324.fits
.....................!
real 16.42
user 16.01
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/735757/ft1_filtered_4FGL_J1230.2+2517_daily_bin324.fits evtable="EVENTS" scfile=/scratch/kocevski/735757/ft2_4FGL_J1230.2+2517_daily_bin324.fits sctable="SC_DATA" expcube=/scratch/kocevski/735757/ltcube_323308801_323568001_4FGL_J1230.2+2517_daily_bin324.fits outfile=/scratch/kocevski/735757/expmap_323308801_323568001_4FGL_J1230.2+2517_daily_bin324.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/735757/ltcube_323308801_323568001_4FGL_J1230.2+2517_daily_bin324.fits
.....................!
real 193.53
user 188.19
sys 4.87

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/735757/ft1_filtered_4FGL_J1230.2+2517_daily_bin324.fits scfile=/scratch/kocevski/735757/ft2_4FGL_J1230.2+2517_daily_bin324.fits outfile=/scratch/kocevski/735757/cmap_323308801_323568001_4FGL_J1230.2+2517_daily_bin324.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/735757/ft1_filtered_4FGL_J1230.2+2517_daily_bin324.fits scfile=/scratch/kocevski/735757/ft2_4FGL_J1230.2+2517_daily_bin324.fits outfile=/scratch/kocevski/735757/cmap_HighResolution_323308801_323568001_4FGL_J1230.2+2517_daily_bin324.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.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/735757/ft1_filtered_4FGL_J1230.2+2517_daily_bin324.fits', '/scratch/kocevski/735757/ft2_4FGL_J1230.2+2517_daily_bin324.fits', expMap='/scratch/kocevski/735757/expmap_323308801_323568001_4FGL_J1230.2+2517_daily_bin324.fits', expCube='/scratch/kocevski/735757/ltcube_323308801_323568001_4FGL_J1230.2+2517_daily_bin324.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/735757/Model_4FGL_J1230.2+2517_daily_bin324.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/735757/ft1_filtered_4FGL_J1230.2+2517_daily_bin324.fits
Spacecraft file(s): /scratch/kocevski/735757/ft2_4FGL_J1230.2+2517_daily_bin324.fits
Exposure map: /scratch/kocevski/735757/expmap_323308801_323568001_4FGL_J1230.2+2517_daily_bin324.fits
Exposure cube: /scratch/kocevski/735757/ltcube_323308801_323568001_4FGL_J1230.2+2517_daily_bin324.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/735757/Model_4FGL_J1230.2+2517_daily_bin324.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) = 5996.13914086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1854       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.8668       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5801       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7513       1.0000         .10000E-03   10000.    
    10 'norm      '    12.612       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1056       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3002       1.0000         .10000E-03   10000.    
    15 'norm      '    .79229       1.0000         .10000E-03   10000.    
    16 'norm      '    6.7128       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2055       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.8376       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21617E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.8317       1.0000         .10000E-03   10000.    
    21 'norm      '    2.4613       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .13841E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .95554       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1368       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=   5996.058     FROM MIGRAD    STATUS=CONVERGED    724 CALLS     3049 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.098         .0000    ** at limit **
   2  Prefactor     .10000E-03    6.1408         .0000    ** at limit **
   3  Prefactor     1.1853        1.2972         .0000        .38995E-03
   4  Prefactor     .10000E-03    43.070         .0000    ** at limit **
   5  norm          2.8668        1.2063         .0000        .12774E-03
   6  Prefactor     2.5802        3.5827         .0000        .61305E-03
   7  Prefactor     .10000E-03    6.1033         .0000    ** at limit **
   8  Prefactor     .10000E-03    1.9039         .0000    ** at limit **
   9  Prefactor     1.7513        2.7051         .0000        .58852E-03
  10  norm          12.612        3.6183         .0000        .16250E-03
  11  Prefactor     .10000E-03    3.1960         .0000    ** at limit **
  12  Prefactor     .10000E-03    1.0065         .0000    ** at limit **
  13  Prefactor     3.1056        1.6682         .0000       -.39937E-04
  14  Prefactor     2.3000        4.7380         .0000        .53029E-03
  15  norm          .79229        .27042         .0000        .78648E-03
  16  norm          6.7128        4.8166         .0000        .19057E-03
  17  Prefactor     1.2045        12.236         .0000        .17862E-01
  18  Prefactor     8.8469        30.102         .0000        .48541E-03
  19  Prefactor     .10000E-03    270.09         .0000    ** at limit **
  20  Prefactor     8.8316        6.8794         .0000        .42190E-03
  21  norm          2.4617        3.6852         .0000        .36564E-03
  22  Prefactor     .10000E-03    14.005         .0000    ** at limit **
  23  norm          .10000E-03    1.0248         .0000    ** at limit **
  24  norm          .10000E-03    1.9561         .0000    ** at limit **
  25  norm          .10000E-03    2.3481         .0000    ** at limit **
  26  norm          .10000E-03    5.1834         .0000    ** at limit **
  27  Normalizat    .95552        .17560         .0000        .89851E-05
  28  Prefactor     1.1369        .19877         .0000        .31964E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.18529
  Prefactor  = 0.0001
  norm       = 2.86682
  Prefactor  = 2.58016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.75131
  norm       = 12.6124
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.10558
  Prefactor  = 2.29996
  norm       = 0.79229
  norm       = 6.71276
  Prefactor  = 1.20455
  Prefactor  = 8.84691
  Prefactor  = 0.000100001
  Prefactor  = 8.83157
  norm       = 2.46174
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.955516
  Prefactor  = 1.13688
 **********
 **   18 **HESSE 
 **********

 FCN=   5996.058     FROM HESSE     STATUS=OK           529 CALLS     3578 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.1623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1853        1.2710        .89225E-04   -1.5490    
   4  Prefactor     .10000E-03    43.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.8668        1.2042        .53095E-04   -1.5369    
   6  Prefactor     2.5802        3.5145        .16205E-03   -1.5387    
   7  Prefactor     .10000E-03    6.1054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.1662        .19632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.7513        2.6017        .14666E-03   -1.5443    
  10  norm          12.612        3.6056        .75665E-04   -1.4998    
  11  Prefactor     .10000E-03    3.2156        .13518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.0139        .75608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.1056        1.6671        .70449E-04   -1.5355    
  14  Prefactor     2.3000        4.7020        .22224E-03   -1.5405    
  15  norm          .79229        .26925        .22395E-04   -1.5530    
  16  norm          6.7128        4.7969        .13161E-03   -1.5190    
  17  Prefactor     1.2045        12.394        .20638E-02   -1.5488    
  18  Prefactor     8.8469        30.099        .13483E-03   -1.5113    
  19  Prefactor     .10000E-03    272.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.8316        6.8782        .13487E-03   -1.5114    
  21  norm          2.4617        3.6649        .17380E-03   -1.5394    
  22  Prefactor     .10000E-03    14.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.0277        .76545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.3174        .37215E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.3543        .11584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    5.1843        .17218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .95552        .20469        .25214E-03   -.94536    
  28  Prefactor     1.1369        .23295        .26887E-03   -.88296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73705e-09
Minuit parameter uncertainties:
  1  1.25651e-05
  2  1.85732e-05
  3  1.27105
  4  0.000115634
  5  1.20422
  6  3.51476
  7  2.05413e-05
  8  2.65293e-06
  9  2.60188
  10  3.60566
  11  1.77145e-06
  12  1.02956e-06
  13  1.6671
  14  4.70272
  15  0.269253
  16  4.79721
  17  7.72936
  18  30.1508
  19  0.00115659
  20  6.87881
  21  3.66524
  22  1.75227e-06
  23  2.50508e-07
  24  9.61589e-05
  25  5.70271e-06
  26  3.92466e-06
  27  0.204859
  28  0.233159
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  6.713e+00  4.797e+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.137e+00  2.332e-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:  9.555e-01  2.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.61
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.94e-08 +/- 2.82e-08
Energy Flux (Fixed Index): 2.35e-05 +/- 1.68e-05

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

Saving results to:
/scratch/kocevski/735757/likelihoodResults_323308801_323568001_4FGL_J1230.2+2517_daily_bin324.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) = 5996.01208707
delta logL = 0.0461660799174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5996.005422
delta logL = 0.0528311554481

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1731       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1960       1.0000          .0000       5.0000    
     3 'Normalizat'    .94712       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1436       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=   5996.005     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1709        99.865        .40395E-02    .37716E-03
   2  alpha         2.1965        3.3653        .36376        .54688E-04
   3  Normalizat    .94695        .78917E-01    .45501E-01   -.35217E-04
   4  Prefactor     1.1437        .83037E-01    .60640E-01    .27834E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.17094
  alpha      = 2.19654
  Normalizat = 0.946949
  Prefactor  = 1.14375
 **********
 **   18 **HESSE 
 **********

 FCN=   5996.005     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1709        4.9800        .12372E-03   -1.5211    
   2  alpha         2.1965        .64394        .12760E-01   -.12168    
   3  Normalizat    .94695        .20161        .25310E-03   -.94830    
   4  Prefactor     1.1437        .23203        .26818E-03   -.88080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.352e-11
Minuit parameter uncertainties:
  1  4.98031
  2  0.651398
  3  0.201776
  4  0.232236
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/735757': 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) = 5996.00542138
delta logL = 0.0528317730932

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  6.171e+00  4.980e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.197e+00  6.514e-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.144e+00  2.322e-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:  9.469e-01  2.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.71
Ra Dec: 187.560 25.298
Photon Index (Free Index): 2.20 +/- 0.65
Photon Flux (Free Index): 4.54e-08 +/- 3.40e-08
Energy Flux (Free Index): 1.93e-05 +/- 1.78e-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/735757/cmap_HighResolution_323308801_323568001_4FGL_J1230.2+2517_daily_bin324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.83e-05', comment='SUCCESS', photon_flux='3.94e-08', energy_flux2='1.93e-05', photon_flux_error='2.82e-08', dlogl='5.28e-02', energy_flux='2.35e-05', photon_flux2='4.54e-08', job_status='DONE', time_completed='2021-09-05 20:46:55.139006', photon_index_error2='0.65', photon_index2='2.20', ts='3.61', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='9.81e-08', energy_flux_error2='1.78e-05', EG='0.96', time_epoch_completed='1630900015.14', return_code='0', job_id='735757', GAL2='1.14', EG2='0.95', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='3.40e-08', ts2='3.71', photon_index='2.00' WHERE bin_id='324' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:46:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 735757: <4FGL_J1230.2+2517_daily_bin324> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin324> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 20:30:38 2021
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:30:40 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:40 2021
Terminated at Sun Sep  5 20:46:55 2021
Results reported at Sun Sep  5 20:46:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin324 187.56 25.2983 323308801 323568001 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 :                                   772.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            977 sec.

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

