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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin351
RA = 187.56, Dec = 25.2983
tmin = 330307201, tmax = 330566401
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='738647', job_status='RUN', time_executed='2021-09-05 20:43:06.272853', time_epoch_executed='1630899786.27' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='351'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738647

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738647/ft1_4FGL_J1230.2+2517_daily_bin351.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738647/ft2_4FGL_J1230.2+2517_daily_bin351.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738647/ft1_4FGL_J1230.2+2517_daily_bin351.fits outfile=/scratch/kocevski/738647/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin351.fits ra=187.56 dec=25.2983 rad=12.0 tmin=330307201.0 tmax=330566401.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.29
user 3.05
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/738647/ft2_4FGL_J1230.2+2517_daily_bin351.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/738647/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin351.fits evtable="EVENTS" outfile="/scratch/kocevski/738647/ft1_filtered_4FGL_J1230.2+2517_daily_bin351.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.48
user 0.32
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738647/ft1_filtered_4FGL_J1230.2+2517_daily_bin351.fits" evtable="EVENTS" scfile=/scratch/kocevski/738647/ft2_4FGL_J1230.2+2517_daily_bin351.fits sctable="SC_DATA" outfile=/scratch/kocevski/738647/ltcube_330307201_330566401_4FGL_J1230.2+2517_daily_bin351.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/738647/ft2_4FGL_J1230.2+2517_daily_bin351.fits
.....................!
real 16.06
user 15.71
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738647/ft1_filtered_4FGL_J1230.2+2517_daily_bin351.fits evtable="EVENTS" scfile=/scratch/kocevski/738647/ft2_4FGL_J1230.2+2517_daily_bin351.fits sctable="SC_DATA" expcube=/scratch/kocevski/738647/ltcube_330307201_330566401_4FGL_J1230.2+2517_daily_bin351.fits outfile=/scratch/kocevski/738647/expmap_330307201_330566401_4FGL_J1230.2+2517_daily_bin351.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/738647/ltcube_330307201_330566401_4FGL_J1230.2+2517_daily_bin351.fits
.....................!
real 157.85
user 153.23
sys 4.26

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/738647/ft1_filtered_4FGL_J1230.2+2517_daily_bin351.fits scfile=/scratch/kocevski/738647/ft2_4FGL_J1230.2+2517_daily_bin351.fits outfile=/scratch/kocevski/738647/cmap_330307201_330566401_4FGL_J1230.2+2517_daily_bin351.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.46
user 0.32
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738647/ft1_filtered_4FGL_J1230.2+2517_daily_bin351.fits scfile=/scratch/kocevski/738647/ft2_4FGL_J1230.2+2517_daily_bin351.fits outfile=/scratch/kocevski/738647/cmap_HighResolution_330307201_330566401_4FGL_J1230.2+2517_daily_bin351.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.51
user 0.36
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.2870       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.920       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3977       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2384       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.496       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7430       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10936E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    4.9935       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1070       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10521E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7920       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .69692       1.0000         .10000E-03   10000.    
    16 'norm      '    6.1774       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.9686       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.6005       1.0000         .10000E-03   10000.    
    24 'norm      '    2.5407       1.0000         .10000E-03   10000.    
    25 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    7.0546       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3588       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .62671       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6144.695     FROM MIGRAD    STATUS=CONVERGED    701 CALLS     3529 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.2938       -.89790E-07** at limit **
   2  Prefactor     5.2852        14.100       -.18355E-07    .11060E-04
   3  Prefactor     .10000E-03    .59303       -.13720E-07** at limit **
   4  Prefactor     10.848        33.220       -.66700E-05   -.15079E-03
   5  norm          2.3979        1.3216        .26863E-07    .52886E-04
   6  Prefactor     2.2376        4.6644        .53146E-06    .10213E-03
   7  Prefactor     22.532        41.990        .32528E-05    .99865E-04
   8  Prefactor     7.7531        4.4404        .20228E-06    .93798E-03
   9  Prefactor     .10011E-03    2.0499       -.91447E-06** at limit **
  10  norm          4.9959        3.3761       -.11228E-06    .17390E-03
  11  Prefactor     3.1067        4.8764        .36623E-05   -.70731E-04
  12  Prefactor     .10000E-03    1.6266       -.18598E-06** at limit **
  13  Prefactor     4.7924        2.3993       -.23168E-07    .80937E-04
  14  Prefactor     .10000E-03    2.1379        .68868E-08** at limit **
  15  norm          .69701        .31893        .26226E-07    .12110E-02
  16  norm          6.1775        4.5359        .28900E-07    .24511E-04
  17  Prefactor     6.9688        6.6537       -.61342E-07    .11346E-04
  18  Prefactor     .10000E-03    82.604        .27553E-05** at limit **
  19  Prefactor     .10000E-03    53.397       -.66496E-06** at limit **
  20  Prefactor     .10000E-03    12.396        .49044E-06** at limit **
  21  norm          .10000E-03    2.8055        .12886E-06** at limit **
  22  Prefactor     .10000E-03    8.8116       -.77342E-08** at limit **
  23  norm          3.6005        3.7530        .25224E-06    .92064E-04
  24  norm          2.5409        2.4701       -.18146E-07   -.81961E-05
  25  norm          .10000E-03    3.8166       -.15496E-07** at limit **
  26  norm          7.0542        26.598        .18109E-06   -.25893E-05
  27  Normalizat    1.3587        .19121       -.20303E-06    .22919E-03
  28  Prefactor     .62685        .18976       -.81418E-07    .12750E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.28523
  Prefactor  = 0.0001
  Prefactor  = 10.8485
  norm       = 2.39795
  Prefactor  = 2.23757
  Prefactor  = 22.5316
  Prefactor  = 7.75313
  Prefactor  = 0.000100115
  norm       = 4.99587
  Prefactor  = 3.10672
  Prefactor  = 0.0001
  Prefactor  = 4.79239
  Prefactor  = 0.0001
  norm       = 0.697012
  norm       = 6.17754
  Prefactor  = 6.96875
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.60047
  norm       = 2.54089
  norm       = 0.0001
  norm       = 7.05415
  Normalizat = 1.35872
  Prefactor  = 0.626854
 **********
 **   18 **HESSE 
 **********

 FCN=   6144.695     FROM HESSE     STATUS=OK           525 CALLS     4054 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.2852        14.033        .17480E-03   -1.5248    
   3  Prefactor     .10000E-03    .60247        .58926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.848        34.524        .12124E-03   -1.5049    
   5  norm          2.3979        1.3177        .63498E-04   -1.5398    
   6  Prefactor     2.2376        4.6011        .21981E-03   -1.5409    
   7  Prefactor     22.532        43.014        .84451E-04   -1.4758    
   8  Prefactor     7.7531        4.0734        .10489E-03   -1.5151    
   9  Prefactor     .10011E-03    17.210        .19225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.9959        3.1735        .10526E-03   -1.5261    
  11  Prefactor     3.1067        4.9279        .10644E-02   -1.5355    
  12  Prefactor     .10000E-03    2.8296        .18132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.7924        2.3962        .80994E-04   -1.5270    
  14  Prefactor     .10000E-03    2.1416        .11189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .69701        .31448        .27837E-04   -1.5541    
  16  norm          6.1775        4.5327        .13722E-03   -1.5211    
  17  Prefactor     6.9688        6.6580        .15197E-03   -1.5180    
  18  Prefactor     .10000E-03    83.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    53.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.828        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.8712        .12815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.8251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.6005        3.7426        .14730E-03   -1.5328    
  24  norm          2.5409        2.4673        .11769E-03   -1.5389    
  25  norm          .10000E-03    3.8375        .14899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          7.0542        26.548        .15104E-03   -1.5177    
  27  Normalizat    1.3587        .22465        .23063E-03   -.81830    
  28  Prefactor     .62685        .21919        .33671E-03   -1.0647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.1079e-09
Minuit parameter uncertainties:
  1  2.93042e-06
  2  14.0416
  3  1.16635e-07
  4  34.5872
  5  1.31776
  6  4.60178
  7  43.0731
  8  4.07351
  9  0.00281088
  10  3.17356
  11  4.9285
  12  3.17733e-05
  13  2.39628
  14  1.78749e-07
  15  0.314479
  16  4.53296
  17  6.65871
  18  0.000538423
  19  0.0001252
  20  8.14616e-06
  21  3.67144e-06
  22  1.81882e-06
  23  3.74279
  24  2.46744
  25  5.92402e-07
  26  26.5923
  27  0.224812
  28  0.219485
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  6.178e+00  4.533e+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:  6.269e-01  2.195e-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:  1.359e+00  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.21
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.63e-08 +/- 2.66e-08
Energy Flux (Fixed Index): 2.16e-05 +/- 1.58e-05

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) = 6144.68271107
delta logL = 0.0118741368624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6144.68183728
delta logL = 0.0127479274024

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0235       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8776       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3636       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62446       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6144.682     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      202 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 56.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0233        3.7659       -.98073E-06    .14224E-02
   2  alpha         1.8770        .46160        .95527E-05    .15962E-03
   3  Normalizat    1.3639        .18240       -.24548E-06   -.16110E-03
   4  Prefactor     .62420        .18804        .33535E-06   -.98265E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.02327
  alpha      = 1.87701
  Normalizat = 1.36387
  Prefactor  = 0.624198
 **********
 **   18 **HESSE 
 **********

 FCN=   6144.682     FROM HESSE     STATUS=OK            29 CALLS      231 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0233        4.6288        .13764E-03   -1.5217    
   2  alpha         1.8770        .74626        .15868E-01   -.25185    
   3  Normalizat    1.3639        .21149        .23028E-03   -.81679    
   4  Prefactor     .62420        .21664        .33739E-03   -1.0658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9962e-09
Minuit parameter uncertainties:
  1  4.6291
  2  0.758615
  3  0.211621
  4  0.216929
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738647': 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) = 6144.68183605
delta logL = 0.0127491575495

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  6.023e+00  4.629e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  1.877e+00  7.586e-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:  6.242e-01  2.169e-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:  1.364e+00  2.116e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.24
Ra Dec: 187.560 25.298
Photon Index (Free Index): 1.88 +/- 0.76
Photon Flux (Free Index): 3.12e-08 +/- 3.72e-08
Energy Flux (Free Index): 2.40e-05 +/- 2.55e-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/738647/cmap_HighResolution_330307201_330566401_4FGL_J1230.2+2517_daily_bin351.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.63e-08', energy_flux2='2.40e-05', photon_flux_error='2.66e-08', dlogl='1.27e-02', energy_flux='2.16e-05', photon_flux2='3.12e-08', job_status='DONE', time_completed='2021-09-05 20:52:59.947253', photon_index_error2='0.76', photon_index2='1.88', ts='5.21', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', energy_flux_error2='2.55e-05', EG='1.36', time_epoch_completed='1630900379.95', return_code='0', job_id='738647', GAL2='0.62', EG2='1.36', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='3.72e-08', ts2='5.24', photon_index='2.00' WHERE bin_id='351' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:52:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 738647: <4FGL_J1230.2+2517_daily_bin351> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin351> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 20:40:48 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:40:53 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:40:53 2021
Terminated at Sun Sep  5 20:53:00 2021
Results reported at Sun Sep  5 20:53:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin351 187.56 25.2983 330307201 330566401 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 :                                   591.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            732 sec.

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

