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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin978
RA = 187.56, Dec = 25.2983
tmin = 492825601, tmax = 493084801
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='741878', job_status='RUN', time_executed='2021-09-05 20:54:36.345709', time_epoch_executed='1630900476.35' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='978'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/741878

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/741878/ft1_4FGL_J1230.2+2517_daily_bin978.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/741878/ft2_4FGL_J1230.2+2517_daily_bin978.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/741878/ft1_4FGL_J1230.2+2517_daily_bin978.fits outfile=/scratch/kocevski/741878/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin978.fits ra=187.56 dec=25.2983 rad=12.0 tmin=492825601.0 tmax=493084801.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.76
user 3.51
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/741878/ft1_filtered_4FGL_J1230.2+2517_daily_bin978.fits evtable="EVENTS" scfile=/scratch/kocevski/741878/ft2_4FGL_J1230.2+2517_daily_bin978.fits sctable="SC_DATA" expcube=/scratch/kocevski/741878/ltcube_492825601_493084801_4FGL_J1230.2+2517_daily_bin978.fits outfile=/scratch/kocevski/741878/expmap_492825601_493084801_4FGL_J1230.2+2517_daily_bin978.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/741878/ltcube_492825601_493084801_4FGL_J1230.2+2517_daily_bin978.fits
.....................!
real 192.14
user 186.31
sys 5.23

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/741878/ft1_filtered_4FGL_J1230.2+2517_daily_bin978.fits scfile=/scratch/kocevski/741878/ft2_4FGL_J1230.2+2517_daily_bin978.fits outfile=/scratch/kocevski/741878/cmap_492825601_493084801_4FGL_J1230.2+2517_daily_bin978.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/741878/ft1_filtered_4FGL_J1230.2+2517_daily_bin978.fits scfile=/scratch/kocevski/741878/ft2_4FGL_J1230.2+2517_daily_bin978.fits outfile=/scratch/kocevski/741878/cmap_HighResolution_492825601_493084801_4FGL_J1230.2+2517_daily_bin978.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=187.56 yref=25.2983 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10752E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.361       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    89.460       1.0000         .10000E-03   10000.    
     5 'norm      '    2.2975       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25757       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1746       1.0000         .10000E-03   10000.    
    10 'norm      '    10.060       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10488E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7182       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7373       1.0000         .10000E-03   10000.    
    15 'norm      '    .55057       1.0000         .10000E-03   10000.    
    16 'norm      '    12.659       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.615       1.0000         .10000E-03   10000.    
    21 'norm      '    .10338E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.0181       1.0000         .10000E-03   10000.    
    23 'norm      '    1.8713       1.0000         .10000E-03   10000.    
    24 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1036       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0171       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=   6072.674     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     3531 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7515       -.51838E-06** at limit **
   2  Prefactor     11.342        15.062       -.15293E-04   -.39080E-03
   3  Prefactor     .10000E-03    .64885       -.22218E-06** at limit **
   4  Prefactor     89.440        37.754       -.17521E-04    .88395E-05
   5  norm          2.2973        1.2409        .21869E-06    .95533E-04
   6  Prefactor     .26520        2.3096        .22461E-05   -.85486E-03
   7  Prefactor     .10000E-03    13.733        .10631E-05** at limit **
   8  Prefactor     .10000E-03    1.7039        .19495E-06** at limit **
   9  Prefactor     6.1708        3.9452       -.22483E-06   -.69313E-03
  10  norm          10.060        3.9527        .82382E-08    .56379E-04
  11  Prefactor     .10000E-03    8.2593       -.74346E-05** at limit **
  12  Prefactor     .10000E-03    .93307        .17725E-06** at limit **
  13  Prefactor     4.7184        2.6512       -.40775E-06   -.16486E-03
  14  Prefactor     2.7376        5.3666       -.70054E-06   -.54132E-03
  15  norm          .55047        .26024       -.26771E-07   -.12361E-02
  16  norm          12.653        6.0566       -.24887E-06   -.51648E-04
  17  Prefactor     .10000E-03    3.2920        .27873E-08** at limit **
  18  Prefactor     .10000E-03    14.829        .37524E-05** at limit **
  19  Prefactor     .10000E-03    13.184       -.17089E-05** at limit **
  20  Prefactor     12.621        7.8339       -.45222E-06   -.87857E-05
  21  norm          .10000E-03    1.3483        .12725E-06** at limit **
  22  Prefactor     4.0203        15.310        .19403E-05   -.67836E-04
  23  norm          1.8727        2.8568       -.76138E-06   -.45462E-03
  24  norm          .10000E-03    1.1830        .10318E-06** at limit **
  25  norm          .10000E-03    1.8296        .12509E-06** at limit **
  26  norm          .10000E-03    7.3551        .63991E-05** at limit **
  27  Normalizat    1.1035        .18823        .47846E-05   -.43019E-03
  28  Prefactor     1.0169        .20122       -.11296E-06   -.27766E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.3423
  Prefactor  = 0.0001
  Prefactor  = 89.4399
  norm       = 2.29731
  Prefactor  = 0.2652
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.17079
  norm       = 10.0603
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.71845
  Prefactor  = 2.73761
  norm       = 0.55047
  norm       = 12.6532
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6215
  norm       = 0.0001
  Prefactor  = 4.0203
  norm       = 1.87265
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.10348
  Prefactor  = 1.01686
 **********
 **   18 **HESSE 
 **********

 FCN=   6072.674     FROM HESSE     STATUS=OK           521 CALLS     4052 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7555        .16589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.342        15.035        .11886E-03   -1.5034    
   3  Prefactor     .10000E-03    .66070        .61264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     89.440        37.637        .21241E-03   -1.3814    
   5  norm          2.2973        1.2402        .60944E-04   -1.5405    
   6  Prefactor     .26520        12.754        .21390E-02   -1.5605    
   7  Prefactor     .10000E-03    13.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.7312        .19776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.1708        3.9265        .11648E-03   -1.5211    
  10  norm          10.060        3.9482        .91139E-04   -1.5073    
  11  Prefactor     .10000E-03    8.4097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .93779        .73373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.7184        2.6487        .88866E-04   -1.5273    
  14  Prefactor     2.7376        5.3463        .23543E-03   -1.5377    
  15  norm          .55047        .25681        .25940E-04   -1.5560    
  16  norm          12.653        6.0468        .11258E-03   -1.4996    
  17  Prefactor     .10000E-03    3.2989        .13807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.621        7.8340        .11278E-03   -1.4997    
  21  norm          .10000E-03    1.3545        .88249E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.0203        15.285        .20118E-03   -1.5307    
  23  norm          1.8727        2.8373        .15699E-03   -1.5434    
  24  norm          .10000E-03    1.1938        .82733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.8322        .10293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    7.3522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1035        .22319        .25040E-03   -.89640    
  28  Prefactor     1.0169        .23862        .29091E-03   -.92170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83235e-09
Minuit parameter uncertainties:
  1  3.51421e-06
  2  15.0402
  3  2.79289e-07
  4  37.6471
  5  1.24026
  6  3.67841
  7  0.000118992
  8  3.55217e-06
  9  3.9267
  10  3.94826
  11  3.19295e-05
  12  3.30122e-07
  13  2.64877
  14  5.34719
  15  0.256815
  16  6.04707
  17  3.38179e-06
  18  2.38732e-05
  19  8.26904e-06
  20  7.83465
  21  9.19665e-06
  22  15.2995
  23  2.8375
  24  7.10111e-06
  25  3.60782e-06
  26  9.18943e-06
  27  0.223386
  28  0.238873
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.265e+01  6.047e+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.017e+00  2.389e-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.103e+00  2.234e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.86
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 7.43e-08 +/- 3.55e-08
Energy Flux (Fixed Index): 4.42e-05 +/- 2.11e-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) = 6072.65427915
delta logL = 0.0192765350239

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6072.65360835
delta logL = 0.0199473353296

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.702       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9239       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1097       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0132       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=   6072.654     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      206 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.729        10.100        .28099E-02    .79657E-04
   2  alpha         1.9262        .56884        .25964        .19953E-04
   3  Normalizat    1.1094        .18153        .56503E-01    .41879E-04
   4  Prefactor     1.0133        .20248        .65879E-01    .41259E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.729
  alpha      = 1.92619
  Normalizat = 1.10939
  Prefactor  = 1.0133
 **********
 **   18 **HESSE 
 **********

 FCN=   6072.654     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .58E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.729        5.9529        .11239E-03   -1.4994    
   2  alpha         1.9262        .37207        .10349E-01   -.23159    
   3  Normalizat    1.1094        .21348        .24986E-03   -.89451    
   4  Prefactor     1.0133        .23812        .29139E-03   -.92288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.78447e-12
Minuit parameter uncertainties:
  1  5.95319
  2  0.373537
  3  0.213648
  4  0.238368
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/741878': 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) = 6072.65357879
delta logL = 0.0199768970115

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.273e+01  5.953e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  1.926e+00  3.735e-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.013e+00  2.384e-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.109e+00  2.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.89
Ra Dec: 187.560 25.298
Photon Index (Free Index): 1.93 +/- 0.37
Photon Flux (Free Index): 6.92e-08 +/- 4.11e-08
Energy Flux (Free Index): 4.79e-05 +/- 3.03e-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/741878/cmap_HighResolution_492825601_493084801_4FGL_J1230.2+2517_daily_bin978.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.43e-08', energy_flux2='4.79e-05', photon_flux_error='3.55e-08', dlogl='2.00e-02', energy_flux='4.42e-05', photon_flux2='6.92e-08', job_status='DONE', time_completed='2021-09-05 21:06:47.046710', photon_index_error2='0.37', photon_index2='1.93', ts='17.86', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='3.03e-05', EG='1.10', time_epoch_completed='1630901207.05', return_code='0', job_id='741878', GAL2='1.01', EG2='1.11', return_code2='0', energy_flux_error='2.11e-05', photon_flux_error2='4.11e-08', ts2='17.89', photon_index='2.00' WHERE bin_id='978' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:06:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 741878: <4FGL_J1230.2+2517_daily_bin978> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin978 187.56 25.2983 492825601 493084801 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 :                                   726.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            973 sec.

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

