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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin149
RA = 187.56, Dec = 25.2983
tmin = 277948801, tmax = 278208001
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='734801', job_status='RUN', time_executed='2021-09-05 20:27:46.428501', time_epoch_executed='1630898866.43' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='149'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734801

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734801/ft1_4FGL_J1230.2+2517_daily_bin149.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734801/ft2_4FGL_J1230.2+2517_daily_bin149.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734801/ft1_4FGL_J1230.2+2517_daily_bin149.fits outfile=/scratch/kocevski/734801/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin149.fits ra=187.56 dec=25.2983 rad=12.0 tmin=277948801.0 tmax=278208001.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 4.17
user 3.96
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/734801/ft1_filtered_4FGL_J1230.2+2517_daily_bin149.fits" evtable="EVENTS" scfile=/scratch/kocevski/734801/ft2_4FGL_J1230.2+2517_daily_bin149.fits sctable="SC_DATA" outfile=/scratch/kocevski/734801/ltcube_277948801_278208001_4FGL_J1230.2+2517_daily_bin149.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/734801/ft2_4FGL_J1230.2+2517_daily_bin149.fits
.....................!
real 13.07
user 12.68
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734801/ft1_filtered_4FGL_J1230.2+2517_daily_bin149.fits evtable="EVENTS" scfile=/scratch/kocevski/734801/ft2_4FGL_J1230.2+2517_daily_bin149.fits sctable="SC_DATA" expcube=/scratch/kocevski/734801/ltcube_277948801_278208001_4FGL_J1230.2+2517_daily_bin149.fits outfile=/scratch/kocevski/734801/expmap_277948801_278208001_4FGL_J1230.2+2517_daily_bin149.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/734801/ltcube_277948801_278208001_4FGL_J1230.2+2517_daily_bin149.fits
.....................!
real 191.88
user 187.42
sys 3.98

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/734801/ft1_filtered_4FGL_J1230.2+2517_daily_bin149.fits scfile=/scratch/kocevski/734801/ft2_4FGL_J1230.2+2517_daily_bin149.fits outfile=/scratch/kocevski/734801/cmap_277948801_278208001_4FGL_J1230.2+2517_daily_bin149.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.62
user 0.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.786       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.1958       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .24771E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10355E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7627       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .70279E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.6711       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3949       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4442       1.0000         .10000E-03   10000.    
    16 'norm      '    12.320       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4739       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.681       1.0000         .10000E-03   10000.    
    23 'norm      '    8.3671       1.0000         .10000E-03   10000.    
    24 'norm      '    6.4993       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.5367       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .91467       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2617       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=   5781.308     FROM MIGRAD    STATUS=CONVERGED    691 CALLS     3469 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.789        18.598        .60518E-07   -.83495E-05
   2  Prefactor     .10000E-03    7.7579        .10365E-06** at limit **
   3  Prefactor     .10000E-03    .58687        .36028E-08** at limit **
   4  Prefactor     .10000E-03    12.721        .12295E-06** at limit **
   5  norm          1.1956        1.1510        .47592E-08   -.12806E-03
   6  Prefactor     .10001E-03    2.4672        .55670E-06** at limit **
   7  Prefactor     .10000E-03    50.062        .34383E-05** at limit **
   8  Prefactor     1.7657        3.1833        .31500E-06   -.15618E-04
   9  Prefactor     .10000E-03    1.9298        .98516E-07** at limit **
  10  norm          4.6700        2.9331       -.35326E-07   -.60357E-04
  11  Prefactor     .10000E-03    6.9342       -.71839E-07** at limit **
  12  Prefactor     .10000E-03    1.1820        .20074E-08** at limit **
  13  Prefactor     4.3944        2.5353       -.13922E-06   -.37484E-04
  14  Prefactor     .10000E-03    2.3167       -.32175E-08** at limit **
  15  norm          1.4442        .37319        .12309E-07    .33011E-04
  16  norm          12.320        5.8747       -.40455E-07   -.39068E-05
  17  Prefactor     3.4732        12.678        .43751E-05    .29841E-04
  18  Prefactor     .10000E-03    38.896       -.42528E-05** at limit **
  19  Prefactor     .10000E-03    22.253        .98669E-06** at limit **
  20  Prefactor     .10000E-03    3.9866       -.44360E-07** at limit **
  21  norm          .10000E-03    1.6289        .81019E-07** at limit **
  22  Prefactor     21.684        25.265       -.24557E-06   -.40839E-05
  23  norm          8.3670        4.4470        .10306E-07    .57342E-05
  24  norm          6.4998        4.3866       -.22201E-06   -.28728E-04
  25  norm          .10000E-03    5.7874        .41701E-06** at limit **
  26  norm          5.5376        20.373        .20235E-05    .99164E-05
  27  Normalizat    .91457        .19854       -.54941E-06   -.46720E-04
  28  Prefactor     1.2617        .21544        .10262E-06   -.22452E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.7891
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.19561
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 1.76572
  Prefactor  = 0.000100002
  norm       = 4.67004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.3944
  Prefactor  = 0.0001
  norm       = 1.44423
  norm       = 12.3197
  Prefactor  = 3.47318
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.6844
  norm       = 8.36704
  norm       = 6.49984
  norm       = 0.0001
  norm       = 5.53762
  Normalizat = 0.914566
  Prefactor  = 1.26169
 **********
 **   18 **HESSE 
 **********

 FCN=   5781.308     FROM HESSE     STATUS=OK           523 CALLS     3992 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.789        18.592        .92407E-04   -1.4841    
   2  Prefactor     .10000E-03    7.8112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .59180        .56798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.1956        1.1252        .75723E-04   -1.5489    
   6  Prefactor     .10001E-03    12.048        .21655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    50.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7657        2.9790        .16271E-03   -1.5442    
   9  Prefactor     .10000E-03    12.005        .19228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.6700        2.9231        .98500E-04   -1.5276    
  11  Prefactor     .10000E-03    7.0409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.1998        .80488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.3944        2.5322        .85876E-04   -1.5289    
  14  Prefactor     .10000E-03    2.3221        .11300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4442        .37256        .22307E-04   -1.5468    
  16  norm          12.320        5.8720        .11413E-03   -1.5006    
  17  Prefactor     3.4732        12.745        .10848E-02   -1.5335    
  18  Prefactor     .10000E-03    38.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.0013        .14824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.6405        .94735E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.684        25.246        .86021E-04   -1.4776    
  23  norm          8.3670        4.4444        .11241E-03   -1.5129    
  24  norm          6.4998        4.3767        .12395E-03   -1.5198    
  25  norm          .10000E-03    5.8284        .17838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.5376        20.381        .85373E-03   -1.5237    
  27  Normalizat    .91457        .22965        .27604E-03   -.95950    
  28  Prefactor     1.2617        .25219        .27162E-03   -.84453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.27814e-10
Minuit parameter uncertainties:
  1  18.5981
  2  5.92244e-06
  3  1.81757e-07
  4  6.07579e-06
  5  1.12518
  6  0.000513486
  7  0.000116507
  8  2.9792
  9  0.000293575
  10  2.92317
  11  8.20553e-06
  12  1.026e-06
  13  2.53222
  14  1.04558e-06
  15  0.372565
  16  5.87222
  17  12.7549
  18  1.85507e-05
  19  1.43001e-06
  20  2.55334e-06
  21  3.74035e-06
  22  25.258
  23  4.44459
  24  4.37693
  25  4.81701e-05
  26  20.4067
  27  0.229898
  28  0.252432
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.232e+01  5.872e+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.262e+00  2.524e-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.146e-01  2.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.28
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 7.24e-08 +/- 3.45e-08
Energy Flux (Fixed Index): 4.30e-05 +/- 2.05e-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) = 5781.02185131
delta logL = 0.286069617621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5780.98778222
delta logL = 0.320138704427

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.698       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6765       1.0000          .0000       5.0000    
     3 'Normalizat'    .93554       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2505       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=   5780.988     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.696        5.9191        .29282E-02   -.94738E-04
   2  alpha         1.6764        .34071        .26012       -.28260E-04
   3  Normalizat    .93563        .18857        .45354E-01   -.44124E-05
   4  Prefactor     1.2504        .21398        .61680E-01    .47328E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 11.6964
  alpha      = 1.67639
  Normalizat = 0.935634
  Prefactor  = 1.25038
 **********
 **   18 **HESSE 
 **********

 FCN=   5780.988     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.696        6.2912        .11713E-03   -1.5024    
   2  alpha         1.6764        .39496        .10515E-01   -.33572    
   3  Normalizat    .93563        .22056        .27342E-03   -.95219    
   4  Prefactor     1.2504        .25015        .27278E-03   -.84795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86624e-10
Minuit parameter uncertainties:
  1  6.29159
  2  0.396828
  3  0.220769
  4  0.250388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734801': 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) = 5780.9877821
delta logL = 0.320138832471

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.170e+01  6.292e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  1.676e+00  3.968e-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.250e+00  2.504e-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.356e-01  2.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.92
Ra Dec: 187.560 25.298
Photon Index (Free Index): 1.68 +/- 0.40
Photon Flux (Free Index): 5.12e-08 +/- 3.55e-08
Energy Flux (Free Index): 6.45e-05 +/- 4.88e-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/734801/cmap_HighResolution_277948801_278208001_4FGL_J1230.2+2517_daily_bin149.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.24e-08', energy_flux2='6.45e-05', photon_flux_error='3.45e-08', dlogl='3.20e-01', energy_flux='4.30e-05', photon_flux2='5.12e-08', job_status='DONE', time_completed='2021-09-05 20:39:26.087035', photon_index_error2='0.40', photon_index2='1.68', ts='17.28', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='4.88e-05', EG='0.91', time_epoch_completed='1630899566.09', return_code='0', job_id='734801', GAL2='1.25', EG2='0.94', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='3.55e-08', ts2='17.92', photon_index='2.00' WHERE bin_id='149' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:39:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 734801: <4FGL_J1230.2+2517_daily_bin149> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin149> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 20:25:32 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:25: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:25:53 2021
Terminated at Sun Sep  5 20:39:27 2021
Results reported at Sun Sep  5 20:39:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin149 187.56 25.2983 277948801 278208001 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 :                                   695.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            835 sec.

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

