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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin893
RA = 187.56, Dec = 25.2983
tmin = 470793601, tmax = 471052801
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='741747', job_status='RUN', time_executed='2021-09-05 20:52:21.541307', time_epoch_executed='1630900341.54' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='893'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/741747

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/741747/ft1_4FGL_J1230.2+2517_daily_bin893.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/741747/ft2_4FGL_J1230.2+2517_daily_bin893.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/741747/ft1_4FGL_J1230.2+2517_daily_bin893.fits outfile=/scratch/kocevski/741747/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin893.fits ra=187.56 dec=25.2983 rad=12.0 tmin=470793601.0 tmax=471052801.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.59
user 3.27
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/741747/ft2_4FGL_J1230.2+2517_daily_bin893.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/741747/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin893.fits evtable="EVENTS" outfile="/scratch/kocevski/741747/ft1_filtered_4FGL_J1230.2+2517_daily_bin893.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.83
user 0.37
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/741747/ft1_filtered_4FGL_J1230.2+2517_daily_bin893.fits" evtable="EVENTS" scfile=/scratch/kocevski/741747/ft2_4FGL_J1230.2+2517_daily_bin893.fits sctable="SC_DATA" outfile=/scratch/kocevski/741747/ltcube_470793601_471052801_4FGL_J1230.2+2517_daily_bin893.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/741747/ft2_4FGL_J1230.2+2517_daily_bin893.fits
.....................!
real 14.09
user 13.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/741747/ft1_filtered_4FGL_J1230.2+2517_daily_bin893.fits evtable="EVENTS" scfile=/scratch/kocevski/741747/ft2_4FGL_J1230.2+2517_daily_bin893.fits sctable="SC_DATA" expcube=/scratch/kocevski/741747/ltcube_470793601_471052801_4FGL_J1230.2+2517_daily_bin893.fits outfile=/scratch/kocevski/741747/expmap_470793601_471052801_4FGL_J1230.2+2517_daily_bin893.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/741747/ltcube_470793601_471052801_4FGL_J1230.2+2517_daily_bin893.fits
.....................!
real 191.96
user 186.23
sys 4.48

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/741747/ft1_filtered_4FGL_J1230.2+2517_daily_bin893.fits scfile=/scratch/kocevski/741747/ft2_4FGL_J1230.2+2517_daily_bin893.fits outfile=/scratch/kocevski/741747/cmap_470793601_471052801_4FGL_J1230.2+2517_daily_bin893.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/741747/ft1_filtered_4FGL_J1230.2+2517_daily_bin893.fits scfile=/scratch/kocevski/741747/ft2_4FGL_J1230.2+2517_daily_bin893.fits outfile=/scratch/kocevski/741747/cmap_HighResolution_470793601_471052801_4FGL_J1230.2+2517_daily_bin893.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.373       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6592       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4281       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11039E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.9785       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.307       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5549       1.0000         .10000E-03   10000.    
    10 'norm      '    9.0875       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.885       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11610E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5125       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .19238       1.0000         .10000E-03   10000.    
    16 'norm      '    6.9977       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.945       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.3149       1.0000         .10000E-03   10000.    
    21 'norm      '    .10151E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    69.698       1.0000         .10000E-03   10000.    
    23 'norm      '    5.5344       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.4420       1.0000         .10000E-03   10000.    
    26 'norm      '    9.0162       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0042       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0177       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=   6654.539     FROM MIGRAD    STATUS=CONVERGED    684 CALLS     3531 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.371        20.002       -.70680E-06    .17175E-04
   2  Prefactor     1.6586        4.0365        .14020E-05   -.12506E-02
   3  Prefactor     1.4288        1.3687        .26481E-07    .20809E-04
   4  Prefactor     .10000E-03    56.871       -.23254E-04** at limit **
   5  norm          8.9786        1.8857        .36581E-07    .50792E-03
   6  Prefactor     .10000E-03    1.1160       -.62339E-07** at limit **
   7  Prefactor     12.303        25.492       -.29711E-05    .60533E-04
   8  Prefactor     .10000E-03    1.3975       -.68742E-07** at limit **
   9  Prefactor     3.5572        3.2887       -.10640E-06   -.34906E-04
  10  norm          9.0881        4.2844       -.71084E-07   -.19693E-03
  11  Prefactor     10.886        7.9473        .22244E-06    .35356E-04
  12  Prefactor     .10000E-03    1.8547        .10692E-06** at limit **
  13  Prefactor     3.5126        2.3052       -.15807E-07   -.60713E-04
  14  Prefactor     .10000E-03    2.1555        .21920E-07** at limit **
  15  norm          .19239        .17341       -.34185E-08   -.20792E-03
  16  norm          6.9976        4.5566        .27391E-07   -.68786E-05
  17  Prefactor     12.947        10.577       -.19078E-06   -.21011E-04
  18  Prefactor     .10000E-03    21.174       -.46582E-06** at limit **
  19  Prefactor     .10000E-03    52.575        .22273E-04** at limit **
  20  Prefactor     5.3141        5.9495       -.35038E-06   -.46288E-04
  21  norm          .10000E-03    5.1037        .34597E-06** at limit **
  22  Prefactor     69.692        31.906       -.28932E-05   -.11142E-03
  23  norm          5.5345        3.7333        .39710E-06    .30108E-04
  24  norm          .10000E-03    3.0618        .79920E-07** at limit **
  25  norm          1.4426        4.1537        .50238E-06   -.88012E-04
  26  norm          9.0150        17.761       -.56196E-06   -.70968E-05
  27  Normalizat    1.0039        .18438        .11310E-05    .30389E-04
  28  Prefactor     1.0181        .19620       -.32696E-06    .82289E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.3711
  Prefactor  = 1.65862
  Prefactor  = 1.42878
  Prefactor  = 0.0001
  norm       = 8.97862
  Prefactor  = 0.0001
  Prefactor  = 12.3027
  Prefactor  = 0.0001
  Prefactor  = 3.55716
  norm       = 9.08812
  Prefactor  = 10.8858
  Prefactor  = 0.0001
  Prefactor  = 3.51265
  Prefactor  = 0.0001
  norm       = 0.192386
  norm       = 6.99755
  Prefactor  = 12.9469
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.31415
  norm       = 0.0001
  Prefactor  = 69.692
  norm       = 5.5345
  norm       = 0.0001
  norm       = 1.44257
  norm       = 9.01496
  Normalizat = 1.00389
  Prefactor  = 1.01811
 **********
 **   18 **HESSE 
 **********

 FCN=   6654.539     FROM HESSE     STATUS=OK           533 CALLS     4064 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.371        19.994        .69365E-04   -1.4552    
   2  Prefactor     1.6586        14.966        .16378E-02   -1.5450    
   3  Prefactor     1.4288        1.3653        .89180E-04   -1.5469    
   4  Prefactor     .10000E-03    56.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.9786        1.8878        .48491E-04   -1.5109    
   6  Prefactor     .10000E-03    1.1220        .84136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.303        25.444        .11419E-03   -1.5006    
   8  Prefactor     .10000E-03    2.5496        .18229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.5572        3.2155        .13164E-03   -1.5331    
  10  norm          9.0881        3.6145        .92091E-04   -1.5105    
  11  Prefactor     10.886        7.9499        .12144E-03   -1.5048    
  12  Prefactor     .10000E-03    5.7222        .17934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.5126        2.2986        .93388E-04   -1.5333    
  14  Prefactor     .10000E-03    2.1670        .11689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .19239        .16563        .30765E-03   -1.5620    
  16  norm          6.9976        4.5526        .13461E-03   -1.5179    
  17  Prefactor     12.947        10.575        .11133E-03   -1.4988    
  18  Prefactor     .10000E-03    21.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    52.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.3141        5.9533        .17433E-03   -1.5247    
  21  norm          .10000E-03    5.2554        .35847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     69.692        31.937        .48082E-04   -1.4036    
  23  norm          5.5345        3.7313        .12449E-03   -1.5237    
  24  norm          .10000E-03    3.1032        .27570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.4426        4.0632        .27028E-03   -1.5468    
  26  norm          9.0150        17.761        .13348E-03   -1.5107    
  27  Normalizat    1.0039        .21559        .26283E-03   -.92900    
  28  Prefactor     1.0181        .22948        .29106E-03   -.92128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.55767e-09
Minuit parameter uncertainties:
  1  19.9983
  2  9.96759
  3  1.36534
  4  0.000153907
  5  1.88778
  6  1.14469e-06
  7  25.4668
  8  2.05841e-06
  9  3.21563
  10  3.61458
  11  7.95069
  12  1.28833e-05
  13  2.29864
  14  1.38417e-06
  15  0.165629
  16  4.55279
  17  10.5767
  18  1.67837e-05
  19  0.000459397
  20  5.95395
  21  6.77647e-05
  22  31.9447
  23  3.73141
  24  1.87563e-05
  25  4.06393
  26  17.7709
  27  0.21578
  28  0.229703
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  6.998e+00  4.553e+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.018e+00  2.297e-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.004e+00  2.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.76
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.11e-08 +/- 2.67e-08
Energy Flux (Fixed Index): 2.44e-05 +/- 1.59e-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) = 6654.48790257
delta logL = 0.0512994243609

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6654.48717618
delta logL = 0.0520258169008

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.9129       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8202       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0134       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0121       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=   6654.487     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      208 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9129        14.996        .38148E-02    .42837E-03
   2  alpha         1.8203        1.3133        .39650       -.19432E-04
   3  Normalizat    1.0134        .18720        .44600E-01    .13068E-04
   4  Prefactor     1.0121        .20622        .65978E-01    .12571E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.9129
  alpha      = 1.82027
  Normalizat = 1.0134
  Prefactor  = 1.01208
 **********
 **   18 **HESSE 
 **********

 FCN=   6654.487     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9129        4.6674        .13762E-03   -1.5182    
   2  alpha         1.8203        .54093        .13779E-01   -.27536    
   3  Normalizat    1.0134        .20277        .26173E-03   -.92583    
   4  Prefactor     1.0121        .22544        .29183E-03   -.92328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13466e-10
Minuit parameter uncertainties:
  1  4.66769
  2  0.545591
  3  0.202923
  4  0.225648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/741747': 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) = 6654.48717611
delta logL = 0.052025887222

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  6.913e+00  4.668e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  1.820e+00  5.456e-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.012e+00  2.256e-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.013e+00  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.84
Ra Dec: 187.560 25.298
Photon Index (Free Index): 1.82 +/- 0.55
Photon Flux (Free Index): 3.40e-08 +/- 3.07e-08
Energy Flux (Free Index): 2.98e-05 +/- 2.82e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/741747/cmap_HighResolution_470793601_471052801_4FGL_J1230.2+2517_daily_bin893.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.11e-08', energy_flux2='2.98e-05', photon_flux_error='2.67e-08', dlogl='5.20e-02', energy_flux='2.44e-05', photon_flux2='3.40e-08', job_status='DONE', time_completed='2021-09-05 21:04:58.232956', photon_index_error2='0.55', photon_index2='1.82', ts='5.76', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.82e-05', EG='1.00', time_epoch_completed='1630901098.23', return_code='0', job_id='741747', GAL2='1.01', EG2='1.01', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='3.07e-08', ts2='5.84', photon_index='2.00' WHERE bin_id='893' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:04:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 741747: <4FGL_J1230.2+2517_daily_bin893> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin893> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 20:50:22 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:50:29 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:50:29 2021
Terminated at Sun Sep  5 21:04:59 2021
Results reported at Sun Sep  5 21:04:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin893 187.56 25.2983 470793601 471052801 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 :                                   751.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            877 sec.

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

