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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin359
RA = 187.56, Dec = 25.2983
tmin = 332380801, tmax = 332640001
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='738660', job_status='RUN', time_executed='2021-09-05 20:43:10.048692', time_epoch_executed='1630899790.05' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='359'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738660

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738660/ft1_4FGL_J1230.2+2517_daily_bin359.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738660/ft2_4FGL_J1230.2+2517_daily_bin359.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738660/ft1_4FGL_J1230.2+2517_daily_bin359.fits outfile=/scratch/kocevski/738660/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin359.fits ra=187.56 dec=25.2983 rad=12.0 tmin=332380801.0 tmax=332640001.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.33
user 3.10
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738660/ft1_filtered_4FGL_J1230.2+2517_daily_bin359.fits" evtable="EVENTS" scfile=/scratch/kocevski/738660/ft2_4FGL_J1230.2+2517_daily_bin359.fits sctable="SC_DATA" outfile=/scratch/kocevski/738660/ltcube_332380801_332640001_4FGL_J1230.2+2517_daily_bin359.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/738660/ft2_4FGL_J1230.2+2517_daily_bin359.fits
.....................!
real 16.05
user 15.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738660/ft1_filtered_4FGL_J1230.2+2517_daily_bin359.fits evtable="EVENTS" scfile=/scratch/kocevski/738660/ft2_4FGL_J1230.2+2517_daily_bin359.fits sctable="SC_DATA" expcube=/scratch/kocevski/738660/ltcube_332380801_332640001_4FGL_J1230.2+2517_daily_bin359.fits outfile=/scratch/kocevski/738660/expmap_332380801_332640001_4FGL_J1230.2+2517_daily_bin359.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/738660/ltcube_332380801_332640001_4FGL_J1230.2+2517_daily_bin359.fits
.....................!
real 191.33
user 186.43
sys 4.33

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/738660/ft1_filtered_4FGL_J1230.2+2517_daily_bin359.fits scfile=/scratch/kocevski/738660/ft2_4FGL_J1230.2+2517_daily_bin359.fits outfile=/scratch/kocevski/738660/cmap_332380801_332640001_4FGL_J1230.2+2517_daily_bin359.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/738660/ft1_filtered_4FGL_J1230.2+2517_daily_bin359.fits scfile=/scratch/kocevski/738660/ft2_4FGL_J1230.2+2517_daily_bin359.fits outfile=/scratch/kocevski/738660/cmap_HighResolution_332380801_332640001_4FGL_J1230.2+2517_daily_bin359.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.499       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0792       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.876       1.0000         .10000E-03   10000.    
     5 'norm      '    4.2246       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .40845E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7948       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.4865       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.3923       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5875       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8016       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9101       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0500       1.0000         .10000E-03   10000.    
    16 'norm      '    3.4603       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.390       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.770       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .38967E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    .13028E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.7322       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .97298       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .97943       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=   5795.258     FROM MIGRAD    STATUS=CONVERGED    703 CALLS     3545 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.501        19.651        .21112E-02    .64039E-04
   2  Prefactor     .10000E-03    13.146        .90712E-02** at limit **
   3  Prefactor     2.0793        1.7399        .71602E-02    .43398E-03
   4  Prefactor     16.875        22.636        .24374E-02    .27157E-03
   5  norm          4.2246        1.5117        .49013E-02    .11585E-03
   6  Prefactor     .10005E-03    1.7981        .56344E-01** at limit **
   7  Prefactor     .10000E-03    7.6460        .90712E-02** at limit **
   8  Prefactor     4.7965        2.7057        .45933E-02    .40496E-04
   9  Prefactor     .10000E-03    .91794        .90712E-02** at limit **
  10  norm          2.4864        2.0283        .64809E-02   -.37814E-04
  11  Prefactor     8.3922        6.2066        .34595E-02    .10537E-03
  12  Prefactor     2.5875        2.0192        .63421E-02    .35563E-04
  13  Prefactor     1.8018        1.7680        .77857E-02    .30271E-03
  14  Prefactor     3.9105        4.2435        .51008E-02    .60303E-03
  15  norm          1.0500        .31978        .50386E-02    .26908E-03
  16  norm          3.4596        4.7230        .54350E-02   -.10202E-02
  17  Prefactor     14.390        12.244        .26397E-02   -.35838E-04
  18  Prefactor     .10001E-03    67.345        .90712E-02** at limit **
  19  Prefactor     .10000E-03    39.647        .90712E-02** at limit **
  20  Prefactor     12.770        8.4668        .28024E-02   -.22416E-03
  21  norm          .10000E-03    1.5096        .90712E-02** at limit **
  22  Prefactor     .10000E-03    27.066        .90712E-02** at limit **
  23  norm          .10010E-03    1.6728        .55547E-01** at limit **
  24  norm          .10000E-03    3.0149        .38043E-01** at limit **
  25  norm          2.7258        3.8420        .61586E-02    .40886E-04
  26  norm          .10001E-03    7.1642        .90712E-02** at limit **
  27  Normalizat    .97298        .18162        .45827E-01   -.80578E-05
  28  Prefactor     .97947        .19860        .46009E-01    .23058E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.5005
  Prefactor  = 0.0001
  Prefactor  = 2.0793
  Prefactor  = 16.8746
  norm       = 4.22461
  Prefactor  = 0.000100047
  Prefactor  = 0.000100003
  Prefactor  = 4.79652
  Prefactor  = 0.0001
  norm       = 2.48642
  Prefactor  = 8.39224
  Prefactor  = 2.58749
  Prefactor  = 1.80175
  Prefactor  = 3.91055
  norm       = 1.05004
  norm       = 3.45959
  Prefactor  = 14.3899
  Prefactor  = 0.000100011
  Prefactor  = 0.000100004
  Prefactor  = 12.7696
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.000100104
  norm       = 0.000100004
  norm       = 2.72576
  norm       = 0.000100006
  Normalizat = 0.972975
  Prefactor  = 0.979467
 **********
 **   18 **HESSE 
 **********

 FCN=   5795.258     FROM HESSE     STATUS=OK           535 CALLS     4080 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.501        19.616        .84446E-04   -1.4759    
   2  Prefactor     .10000E-03    13.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.0793        1.7252        .86714E-04   -1.5420    
   4  Prefactor     16.875        22.638        .97494E-04   -1.4886    
   5  norm          4.2246        1.5108        .53185E-04   -1.5297    
   6  Prefactor     .10005E-03    8.4825        .19548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.6502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.7965        2.6880        .89847E-04   -1.5270    
   9  Prefactor     .10000E-03    .92456        .71180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.4864        2.0489        .91047E-04   -1.5393    
  11  Prefactor     8.3922        6.2074        .13838E-03   -1.5128    
  12  Prefactor     2.5875        2.0344        .88665E-04   -1.5386    
  13  Prefactor     1.8018        1.7582        .94666E-04   -1.5440    
  14  Prefactor     3.9105        4.2384        .15648E-03   -1.5312    
  15  norm          1.0500        .31906        .22348E-04   -1.5503    
  16  norm          3.4596        4.7004        .18185E-03   -1.5336    
  17  Prefactor     14.390        12.208        .10559E-03   -1.4949    
  18  Prefactor     .10001E-03    68.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    39.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.770        8.4628        .11209E-03   -1.4993    
  21  norm          .10000E-03    1.5148        .91319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    27.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10010E-03    2.6226        .36227E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.4598        .23170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.7258        3.4843        .15645E-03   -1.5378    
  26  norm          .10001E-03    7.1821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .97298        .20579        .24730E-03   -.93941    
  28  Prefactor     .97947        .22612        .27926E-03   -.93417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.42696e-09
Minuit parameter uncertainties:
  1  19.6212
  2  3.66816e-05
  3  1.72521
  4  22.6498
  5  1.51081
  6  0.00126887
  7  0.000279257
  8  2.68806
  9  1.48873e-06
  10  2.04894
  11  6.20785
  12  2.03448
  13  1.75825
  14  4.23869
  15  0.319061
  16  4.70094
  17  12.2098
  18  0.00171973
  19  0.000784654
  20  8.46356
  21  1.59524e-06
  22  0.000421649
  23  0.00104461
  24  0.000301504
  25  3.48455
  26  0.000411257
  27  0.205962
  28  0.226336
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  3.460e+00  4.701e+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:  9.795e-01  2.263e-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.730e-01  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.76
Ra Dec: 187.560 25.298
Photon Flux Upper Limit: 8.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.09e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/738660/likelihoodResults_332380801_332640001_4FGL_J1230.2+2517_daily_bin359.txt

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) = 5794.06784253
delta logL = 1.18985479833

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5794.02834165
delta logL = 1.22935567671

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .58729       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.0633       1.0000          .0000       5.0000    
     3 'Normalizat'    .88995       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0435       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=   5794.028     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      296 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58313        6.3782        .82876E-02   -.44780E-02
   2  alpha         4.0674        4.4689        .32527       -.90104E-04
   3  Normalizat    .89032        .50642E-01    .44773E-01   -.31845E-03
   4  Prefactor     1.0432        .57602E-01    .61418E-01   -.10438E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.583127
  alpha      = 4.06742
  Normalizat = 0.890322
  Prefactor  = 1.04323
 **********
 **   18 **HESSE 
 **********

 FCN=   5794.028     FROM HESSE     STATUS=OK            29 CALLS      325 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58313        3.4938        .37554E-04   -1.5555    
   2  alpha         4.0674        4.1783        .14306E-02    .67766    
   3  Normalizat    .89032        .20853        .25660E-03   -.96801    
   4  Prefactor     1.0432        .23398        .27162E-03   -.91302    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.18614e-10
Minuit parameter uncertainties:
  1  2.8547
  2  2.87328
  3  0.208718
  4  0.234211
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738660': 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) = 5794.02833694
delta logL = 1.22936038185

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  5.831e-01  2.855e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  4.067e+00  2.873e+00  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.043e+00  2.342e-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.903e-01  2.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.36
Ra Dec: 187.560 25.298
Photon Index (Free Index): 4.07 +/- 2.87
Photon Flux (Free Index): 7.99e-08 +/- 5.55e-08
Energy Flux (Free Index): 1.21e-05 +/- 8.95e-06

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/738660/cmap_HighResolution_332380801_332640001_4FGL_J1230.2+2517_daily_bin359.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-05', comment='SUCCESS', energy_flux2='1.21e-05', dlogl='1.23e+00', photon_flux2='7.99e-08', job_status='DONE', time_completed='2021-09-05 20:56:29.367050', photon_index_error2='2.87', photon_index2='4.07', ts='0.76', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='8.56e-08', energy_flux_error2='8.95e-06', EG='0.97', time_epoch_completed='1630900589.37', return_code='0', job_id='738660', GAL2='1.04', EG2='0.89', return_code2='0', photon_flux_error2='5.55e-08', ts2='3.36', photon_index='2.00' WHERE bin_id='359' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:56:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 738660: <4FGL_J1230.2+2517_daily_bin359> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin359 187.56 25.2983 332380801 332640001 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 :                                   796.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            941 sec.

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

