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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin400
RA = 187.56, Dec = 25.2983
tmin = 343008001, tmax = 343267201
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='738722', job_status='RUN', time_executed='2021-09-05 20:43:44.384932', time_epoch_executed='1630899824.38' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738722

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738722/ft1_4FGL_J1230.2+2517_daily_bin400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738722/ft2_4FGL_J1230.2+2517_daily_bin400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738722/ft1_4FGL_J1230.2+2517_daily_bin400.fits outfile=/scratch/kocevski/738722/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin400.fits ra=187.56 dec=25.2983 rad=12.0 tmin=343008001.0 tmax=343267201.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.32
user 2.96
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738722/ft1_filtered_4FGL_J1230.2+2517_daily_bin400.fits" evtable="EVENTS" scfile=/scratch/kocevski/738722/ft2_4FGL_J1230.2+2517_daily_bin400.fits sctable="SC_DATA" outfile=/scratch/kocevski/738722/ltcube_343008001_343267201_4FGL_J1230.2+2517_daily_bin400.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/738722/ft2_4FGL_J1230.2+2517_daily_bin400.fits
.....................!
real 14.06
user 13.37
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738722/ft1_filtered_4FGL_J1230.2+2517_daily_bin400.fits evtable="EVENTS" scfile=/scratch/kocevski/738722/ft2_4FGL_J1230.2+2517_daily_bin400.fits sctable="SC_DATA" expcube=/scratch/kocevski/738722/ltcube_343008001_343267201_4FGL_J1230.2+2517_daily_bin400.fits outfile=/scratch/kocevski/738722/expmap_343008001_343267201_4FGL_J1230.2+2517_daily_bin400.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/738722/ltcube_343008001_343267201_4FGL_J1230.2+2517_daily_bin400.fits
.....................!
real 158.13
user 152.64
sys 3.74

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/738722/ft1_filtered_4FGL_J1230.2+2517_daily_bin400.fits scfile=/scratch/kocevski/738722/ft2_4FGL_J1230.2+2517_daily_bin400.fits outfile=/scratch/kocevski/738722/cmap_343008001_343267201_4FGL_J1230.2+2517_daily_bin400.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.50
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738722/ft1_filtered_4FGL_J1230.2+2517_daily_bin400.fits scfile=/scratch/kocevski/738722/ft2_4FGL_J1230.2+2517_daily_bin400.fits outfile=/scratch/kocevski/738722/cmap_HighResolution_343008001_343267201_4FGL_J1230.2+2517_daily_bin400.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.50
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.513       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.485       1.0000         .10000E-03   10000.    
     5 'norm      '    2.8713       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.5544       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14251E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1844       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .50710       1.0000         .10000E-03   10000.    
    16 'norm      '    9.2437       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.7022       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.616       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .23085E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .22075E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    50.237       1.0000         .10000E-03   10000.    
    23 'norm      '    .57389       1.0000         .10000E-03   10000.    
    24 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.7472       1.0000         .10000E-03   10000.    
    26 'norm      '    18.992       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .87156       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.3431       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=   6672.093     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     3630 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.518        26.339       -.12775E-05    .16034E-04
   2  Prefactor     .10000E-03    3.0395        .94247E-08** at limit **
   3  Prefactor     .10000E-03    1.2843       -.63878E-07** at limit **
   4  Prefactor     23.483        33.326        .40989E-06    .59920E-04
   5  norm          2.8713        1.3093       -.29917E-07    .15630E-03
   6  Prefactor     .10000E-03    1.2105        .20475E-07** at limit **
   7  Prefactor     .10000E-03    25.604       -.21149E-06** at limit **
   8  Prefactor     .10000E-03    1.9540       -.26998E-06** at limit **
   9  Prefactor     .10000E-03    1.9343        .95293E-07** at limit **
  10  norm          7.5547        3.4768       -.45689E-07    .60676E-03
  11  Prefactor     .10000E-03    5.8804        .20115E-06** at limit **
  12  Prefactor     .10007E-03    1.1365       -.48702E-06** at limit **
  13  Prefactor     2.1846        2.4994        .91672E-07    .33762E-03
  14  Prefactor     .10000E-03    5.1016       -.34686E-06** at limit **
  15  norm          .50706        .23828       -.32386E-07    .41460E-04
  16  norm          9.2439        5.4992       -.92000E-07    .80336E-04
  17  Prefactor     4.7022        6.8972        .89952E-07    .67547E-04
  18  Prefactor     24.606        33.194        .12704E-05    .78984E-04
  19  Prefactor     .10006E-03    331.36       -.34645E-04** at limit **
  20  Prefactor     .10000E-03    4.5854        .38981E-06** at limit **
  21  norm          .10005E-03    4.6570       -.20030E-05** at limit **
  22  Prefactor     50.281        27.938        .75607E-06    .37829E-03
  23  norm          .57497        3.3020        .48760E-07   -.15045E-03
  24  norm          .10000E-03    3.5929       -.24970E-06** at limit **
  25  norm          4.7484        4.7049       -.90424E-06   -.85944E-05
  26  norm          18.990        17.694        .64779E-06    .99889E-04
  27  Normalizat    .87150        .19505        .32354E-05    .37815E-03
  28  Prefactor     1.3431        .20201       -.18285E-05    .51711E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5177
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.4831
  norm       = 2.87127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.55466
  Prefactor  = 0.0001
  Prefactor  = 0.000100067
  Prefactor  = 2.18461
  Prefactor  = 0.0001
  norm       = 0.507063
  norm       = 9.24387
  Prefactor  = 4.70216
  Prefactor  = 24.6059
  Prefactor  = 0.000100059
  Prefactor  = 0.0001
  norm       = 0.00010005
  Prefactor  = 50.2813
  norm       = 0.574967
  norm       = 0.0001
  norm       = 4.74838
  norm       = 18.9903
  Normalizat = 0.871495
  Prefactor  = 1.34309
 **********
 **   18 **HESSE 
 **********

 FCN=   6672.093     FROM HESSE     STATUS=OK           527 CALLS     4157 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.518        25.216        .11324E-03   -1.5000    
   2  Prefactor     .10000E-03    3.0414        .13908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.9348        .16939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.483        33.369        .82656E-04   -1.4738    
   5  norm          2.8713        1.3057        .59727E-04   -1.5369    
   6  Prefactor     .10000E-03    1.2193        .87724E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.0179        .21383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.3119        .21235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.5547        3.3531        .93829E-04   -1.5158    
  11  Prefactor     .10000E-03    6.0094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10007E-03    13.949        .15726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.1846        2.4650        .12638E-03   -1.5412    
  14  Prefactor     .10000E-03    5.1963        .17996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .50706        .23629        .25929E-04   -1.5566    
  16  norm          9.2439        5.4832        .13182E-03   -1.5100    
  17  Prefactor     4.7022        6.8769        .18557E-03   -1.5274    
  18  Prefactor     24.606        33.199        .80738E-04   -1.4715    
  19  Prefactor     .10006E-03    344.76        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.7231        .34134E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10005E-03    14.798        .29649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     50.281        28.560        .56580E-04   -1.4289    
  23  norm          .57497        6.4036        .27401E-02   -1.5556    
  24  norm          .10000E-03    3.6296        .29880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.7484        4.6776        .85200E-03   -1.5272    
  26  norm          18.990        17.679        .91904E-04   -1.4836    
  27  Normalizat    .87150        .22602        .28313E-03   -.97469    
  28  Prefactor     1.3431        .23550        .26043E-03   -.82035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00522e-08
Minuit parameter uncertainties:
  1  25.2371
  2  8.91418e-07
  3  2.99716e-06
  4  33.3959
  5  1.30576
  6  8.63872e-07
  7  5.89867e-05
  8  1.99252e-05
  9  4.16974e-05
  10  3.35317
  11  1.00121e-07
  12  0.00193557
  13  2.4651
  14  1.70682e-05
  15  0.236287
  16  5.48351
  17  6.8781
  18  33.2241
  19  0.00906888
  20  7.4105e-06
  21  0.0017171
  22  28.5674
  23  3.83782
  24  3.3463e-05
  25  4.67794
  26  17.6834
  27  0.226264
  28  0.235685
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  9.244e+00  5.484e+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.343e+00  2.357e-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:  8.715e-01  2.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.50
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 5.43e-08 +/- 3.22e-08
Energy Flux (Fixed Index): 3.23e-05 +/- 1.92e-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) = 6671.4578788
delta logL = 0.635502709629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6671.44948121
delta logL = 0.643900299889

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7356       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4832       1.0000          .0000       5.0000    
     3 'Normalizat'    .84088       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3619       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=   6671.449     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      253 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7377        84.120        .36044E-02    .20971E-03
   2  alpha         2.4839        3.7355        .25105        .50935E-04
   3  Normalizat    .84102        .91447E-01    .64991E-01    .20147E-04
   4  Prefactor     1.3618        .10163        .58522E-01    .19436E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.73773
  alpha      = 2.48389
  Normalizat = 0.841016
  Prefactor  = 1.36183
 **********
 **   18 **HESSE 
 **********

 FCN=   6671.449     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7377        5.1859        .11207E-03   -1.5152    
   2  alpha         2.4839        .45962        .10149E-01   -.64443E-02
   3  Normalizat    .84102        .21042        .28750E-03   -.98565    
   4  Prefactor     1.3618        .23373        .25878E-03   -.81487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41613e-09
Minuit parameter uncertainties:
  1  5.18621
  2  0.462254
  3  0.210624
  4  0.233908
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738722': 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) = 6671.44947807
delta logL = 0.64390344463

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  7.738e+00  5.186e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.484e+00  4.623e-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.362e+00  2.339e-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:  8.410e-01  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.79
Ra Dec: 187.560 25.298
Photon Index (Free Index): 2.48 +/- 0.46
Photon Flux (Free Index): 8.29e-08 +/- 4.64e-08
Energy Flux (Free Index): 2.47e-05 +/- 1.42e-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/738722/cmap_HighResolution_343008001_343267201_4FGL_J1230.2+2517_daily_bin400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.43e-08', energy_flux2='2.47e-05', photon_flux_error='3.22e-08', dlogl='6.44e-01', energy_flux='3.23e-05', photon_flux2='8.29e-08', job_status='DONE', time_completed='2021-09-05 20:54:27.470542', photon_index_error2='0.46', photon_index2='2.48', ts='4.50', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', energy_flux_error2='1.42e-05', EG='0.87', time_epoch_completed='1630900467.47', return_code='0', job_id='738722', GAL2='1.36', EG2='0.84', return_code2='0', energy_flux_error='1.92e-05', photon_flux_error2='4.64e-08', ts2='5.79', photon_index='2.00' WHERE bin_id='400' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:54:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 738722: <4FGL_J1230.2+2517_daily_bin400> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin400 187.56 25.2983 343008001 343267201 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 :                                   621.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            814 sec.

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

