/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 234 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 = 7431
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1230.2+2517_daily_bin110
RA = 187.56, Dec = 25.2983
tmin = 267840001, tmax = 268099201
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='734746', job_status='RUN', time_executed='2021-09-05 20:29:47.743925', time_epoch_executed='1630898987.74' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734746

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734746/ft1_4FGL_J1230.2+2517_daily_bin110.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734746/ft2_4FGL_J1230.2+2517_daily_bin110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734746/ft1_4FGL_J1230.2+2517_daily_bin110.fits outfile=/scratch/kocevski/734746/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin110.fits ra=187.56 dec=25.2983 rad=12.0 tmin=267840001.0 tmax=268099201.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 1.48
user 1.29
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/734746/ft1_filtered_4FGL_J1230.2+2517_daily_bin110.fits" evtable="EVENTS" scfile=/scratch/kocevski/734746/ft2_4FGL_J1230.2+2517_daily_bin110.fits sctable="SC_DATA" outfile=/scratch/kocevski/734746/ltcube_267840001_268099201_4FGL_J1230.2+2517_daily_bin110.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/734746/ft2_4FGL_J1230.2+2517_daily_bin110.fits
.....................!
real 16.25
user 15.81
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734746/ft1_filtered_4FGL_J1230.2+2517_daily_bin110.fits evtable="EVENTS" scfile=/scratch/kocevski/734746/ft2_4FGL_J1230.2+2517_daily_bin110.fits sctable="SC_DATA" expcube=/scratch/kocevski/734746/ltcube_267840001_268099201_4FGL_J1230.2+2517_daily_bin110.fits outfile=/scratch/kocevski/734746/expmap_267840001_268099201_4FGL_J1230.2+2517_daily_bin110.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/734746/ltcube_267840001_268099201_4FGL_J1230.2+2517_daily_bin110.fits
.....................!
real 190.39
user 185.27
sys 4.62

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/734746/ft1_filtered_4FGL_J1230.2+2517_daily_bin110.fits scfile=/scratch/kocevski/734746/ft2_4FGL_J1230.2+2517_daily_bin110.fits outfile=/scratch/kocevski/734746/cmap_267840001_268099201_4FGL_J1230.2+2517_daily_bin110.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/734746/ft1_filtered_4FGL_J1230.2+2517_daily_bin110.fits scfile=/scratch/kocevski/734746/ft2_4FGL_J1230.2+2517_daily_bin110.fits outfile=/scratch/kocevski/734746/cmap_HighResolution_267840001_268099201_4FGL_J1230.2+2517_daily_bin110.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.301       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .63130       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.127       1.0000         .10000E-03   10000.    
     5 'norm      '    2.6076       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.554       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4657       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.0983       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3732       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5390       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2445       1.0000         .10000E-03   10000.    
    15 'norm      '    .77325       1.0000         .10000E-03   10000.    
    16 'norm      '    12.038       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.2332       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0726       1.0000         .10000E-03   10000.    
    19 'Prefactor '    88.638       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.4362       1.0000         .10000E-03   10000.    
    21 'norm      '    .10393E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    44.335       1.0000         .10000E-03   10000.    
    23 'norm      '    9.4505       1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    9.6993       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .84219       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2070       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5513.677     FROM MIGRAD    STATUS=CONVERGED     60 CALLS     2956 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.642        .73435E-06** at limit **
   2  Prefactor     17.300        1.0044       -.37910E-07    .12299E-02
   3  Prefactor     .63188        1.7857       -.13239E-05   -.44138E-03
   4  Prefactor     21.126        1.0199       -.76493E-07    .33502E-02
   5  norm          2.6074        1.3258       -.48497E-07   -.20707E-03
   6  Prefactor     .10000E-03    2.8112       -.49148E-06** at limit **
   7  Prefactor     36.553        1.0144       -.49190E-07    .37774E-02
   8  Prefactor     6.4650        1.0082        .67403E-08   -.37578E-03
   9  Prefactor     .10000E-03    1.1638        .63017E-07** at limit **
  10  norm          3.0981        1.1783        .76829E-06    .10943E-02
  11  Prefactor     .10000E-03    4.1914        .14943E-05** at limit **
  12  Prefactor     1.3730        1.4076       -.78185E-06   -.33804E-03
  13  Prefactor     2.5390        1.8551        .22518E-05    .23028E-02
  14  Prefactor     5.2449        1.0053        .31949E-07   -.46303E-04
  15  norm          .77317        .29473       -.38946E-07   -.44029E-03
  16  norm          12.037        1.0022        .31837E-07   -.38065E-04
  17  Prefactor     9.2319        1.0039       -.83718E-08    .74374E-03
  18  Prefactor     2.0700        1.1562       -.63748E-06    .25785E-02
  19  Prefactor     88.638        1.0137       -.31353E-07    .57840E-02
  20  Prefactor     5.4362        1.0045       -.32421E-08   -.28649E-04
  21  norm          .10000E-03    1.2455        .17660E-05** at limit **
  22  Prefactor     44.334        1.0134       -.43522E-07    .39579E-02
  23  norm          9.4497        1.0026        .12277E-07   -.30801E-03
  24  norm          .10000E-03    1.5312       -.64431E-08** at limit **
  25  norm          .10000E-03    1.1105       -.76438E-06** at limit **
  26  norm          9.6989        1.0039       -.40341E-07    .78138E-03
  27  Normalizat    .84257        .22747       -.17473E-05   -.82337E-04
  28  Prefactor     1.2066        .25695        .13324E-05   -.38192E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.2998
  Prefactor  = 0.631877
  Prefactor  = 21.1263
  norm       = 2.60737
  Prefactor  = 0.0001
  Prefactor  = 36.5528
  Prefactor  = 6.46498
  Prefactor  = 0.0001
  norm       = 3.09814
  Prefactor  = 0.0001
  Prefactor  = 1.37304
  Prefactor  = 2.53902
  Prefactor  = 5.24487
  norm       = 0.773175
  norm       = 12.0373
  Prefactor  = 9.23192
  Prefactor  = 2.06998
  Prefactor  = 88.6376
  Prefactor  = 5.43618
  norm       = 0.000100004
  Prefactor  = 44.3336
  norm       = 9.44965
  norm       = 0.0001
  norm       = 0.000100005
  norm       = 9.69887
  Normalizat = 0.842572
  Prefactor  = 1.20657
 **********
 **   18 **HESSE 
 **********

 FCN=   5513.677     FROM HESSE     STATUS=OK           587 CALLS     3543 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.581        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.300        14.571        .24073E-02   -1.4876    
   3  Prefactor     .63188        1.8179        .11796E-01   -1.5549    
   4  Prefactor     21.126        35.182        .21785E-02   -1.4788    
   5  norm          2.6074        1.3365        .63155E-02   -1.5385    
   6  Prefactor     .10000E-03    2.8072        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     36.553        31.733        .16572E-02   -1.4498    
   8  Prefactor     6.4650        3.7103        .39459E-02   -1.5199    
   9  Prefactor     .10000E-03    1.1585        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.0981        2.2013        .57597E-02   -1.5356    
  11  Prefactor     .10000E-03    4.1864        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.3730        1.4024        .92975E-02   -1.5474    
  13  Prefactor     2.5390        2.0985        .64075E-02   -1.5389    
  14  Prefactor     5.2449        6.8820        .43880E-02   -1.5250    
  15  norm          .77317        .29889        .53634E-02   -1.5532    
  16  norm          12.037        6.4475        .28864E-02   -1.5014    
  17  Prefactor     9.2319        8.7982        .32974E-02   -1.5100    
  18  Prefactor     2.0700        105.68        .71730E-02   -1.5420    
  19  Prefactor     88.638        77.372        .10669E-02   -1.3822    
  20  Prefactor     5.4362        5.9079        .43086E-02   -1.5242    
  21  norm          .10000E-03    1.9647        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     44.334        29.531        .15053E-02   -1.4375    
  23  norm          9.4497        4.9752        .32590E-02   -1.5093    
  24  norm          .10000E-03    1.5377        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.8576        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          9.6989        15.897        .32168E-02   -1.5085    
  27  Normalizat    .84257        .20351        .63869E-01   -.98508    
  28  Prefactor     1.2066        .21841        .61400E-01   -.86129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.28869e-07
Minuit parameter uncertainties:
  1  8.40252e-05
  2  14.5743
  3  1.81802
  4  35.2164
  5  1.33652
  6  2.68678e-05
  7  31.7478
  8  3.71048
  9  8.62233e-06
  10  2.20137
  11  2.47067e-06
  12  1.40241
  13  2.09852
  14  6.88307
  15  0.298886
  16  6.44782
  17  8.79947
  18  29.6351
  19  77.4602
  20  5.90851
  21  0.000183685
  22  29.5408
  23  4.97538
  24  2.80797e-05
  25  0.000192569
  26  15.9038
  27  0.203697
  28  0.218576
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.204e+01  6.448e+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.207e+00  2.186e-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.426e-01  2.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.14
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 7.07e-08 +/- 3.79e-08
Energy Flux (Fixed Index): 4.21e-05 +/- 2.25e-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) = 5513.44356774
delta logL = 0.2332320425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5513.44240005
delta logL = 0.23439973853

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.741       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2705       1.0000          .0000       5.0000    
     3 'Normalizat'    .82472       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2186       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=   5513.442     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      268 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.743        116.98        .30562E-02    .93937E-04
   2  alpha         2.2707        3.5694        .22742        .34544E-04
   3  Normalizat    .82449        .13552        .64465E-01    .24703E-04
   4  Prefactor     1.2189        .14689        .61122E-01    .14266E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10.7428
  alpha      = 2.27069
  Normalizat = 0.824493
  Prefactor  = 1.21888
 **********
 **   18 **HESSE 
 **********

 FCN=   5513.442     FROM HESSE     STATUS=OK            33 CALLS      301 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.743        6.1095        .11264E-03   -1.5052    
   2  alpha         2.2707        .41378        .93492E-02   -.91854E-01
   3  Normalizat    .82449        .22765        .28517E-03   -.99167    
   4  Prefactor     1.2189        .25678        .27031E-03   -.85752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.62854e-10
Minuit parameter uncertainties:
  1  6.10987
  2  0.415709
  3  0.227916
  4  0.257043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734746': 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) = 5513.44239923
delta logL = 0.234400553155

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.074e+01  6.110e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.271e+00  4.157e-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.219e+00  2.570e-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.245e-01  2.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.61
Ra Dec: 187.560 25.298
Photon Index (Free Index): 2.27 +/- 0.42
Photon Flux (Free Index): 8.67e-08 +/- 4.61e-08
Energy Flux (Free Index): 3.31e-05 +/- 1.95e-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/734746/cmap_HighResolution_267840001_268099201_4FGL_J1230.2+2517_daily_bin110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.07e-08', energy_flux2='3.31e-05', photon_flux_error='3.79e-08', dlogl='2.34e-01', energy_flux='4.21e-05', photon_flux2='8.67e-08', job_status='DONE', time_completed='2021-09-05 20:40:21.063560', photon_index_error2='0.42', photon_index2='2.27', ts='7.14', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='1.95e-05', EG='0.84', time_epoch_completed='1630899621.06', return_code='0', job_id='734746', GAL2='1.22', EG2='0.82', return_code2='0', energy_flux_error='2.25e-05', photon_flux_error2='4.61e-08', ts2='7.61', photon_index='2.00' WHERE bin_id='110' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:40:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 734746: <4FGL_J1230.2+2517_daily_bin110> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin110 187.56 25.2983 267840001 268099201 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 :                                   633.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             282.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            894 sec.

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

