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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin129
RA = 187.56, Dec = 25.2983
tmin = 272764801, tmax = 273024001
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='734773', job_status='RUN', time_executed='2021-09-05 20:29:01.643609', time_epoch_executed='1630898941.64' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='129'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734773

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734773/ft1_4FGL_J1230.2+2517_daily_bin129.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734773/ft2_4FGL_J1230.2+2517_daily_bin129.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734773/ft1_4FGL_J1230.2+2517_daily_bin129.fits outfile=/scratch/kocevski/734773/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin129.fits ra=187.56 dec=25.2983 rad=12.0 tmin=272764801.0 tmax=273024001.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.76
user 1.57
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/734773/ft1_filtered_4FGL_J1230.2+2517_daily_bin129.fits" evtable="EVENTS" scfile=/scratch/kocevski/734773/ft2_4FGL_J1230.2+2517_daily_bin129.fits sctable="SC_DATA" outfile=/scratch/kocevski/734773/ltcube_272764801_273024001_4FGL_J1230.2+2517_daily_bin129.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/734773/ft2_4FGL_J1230.2+2517_daily_bin129.fits
.....................!
real 15.77
user 15.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734773/ft1_filtered_4FGL_J1230.2+2517_daily_bin129.fits evtable="EVENTS" scfile=/scratch/kocevski/734773/ft2_4FGL_J1230.2+2517_daily_bin129.fits sctable="SC_DATA" expcube=/scratch/kocevski/734773/ltcube_272764801_273024001_4FGL_J1230.2+2517_daily_bin129.fits outfile=/scratch/kocevski/734773/expmap_272764801_273024001_4FGL_J1230.2+2517_daily_bin129.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/734773/ltcube_272764801_273024001_4FGL_J1230.2+2517_daily_bin129.fits
.....................!
real 191.06
user 185.71
sys 4.72

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/734773/ft1_filtered_4FGL_J1230.2+2517_daily_bin129.fits scfile=/scratch/kocevski/734773/ft2_4FGL_J1230.2+2517_daily_bin129.fits outfile=/scratch/kocevski/734773/cmap_272764801_273024001_4FGL_J1230.2+2517_daily_bin129.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/734773/ft1_filtered_4FGL_J1230.2+2517_daily_bin129.fits scfile=/scratch/kocevski/734773/ft2_4FGL_J1230.2+2517_daily_bin129.fits outfile=/scratch/kocevski/734773/cmap_HighResolution_272764801_273024001_4FGL_J1230.2+2517_daily_bin129.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1093       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.569       1.0000         .10000E-03   10000.    
     5 'norm      '    1.2756       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2227       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11331E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1288       1.0000         .10000E-03   10000.    
    10 'norm      '    2.6956       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2987       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9012       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8506       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0137       1.0000         .10000E-03   10000.    
    16 'norm      '    1.8153       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.887       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    145.62       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10577E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10152E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.480       1.0000         .10000E-03   10000.    
    23 'norm      '    1.6240       1.0000         .10000E-03   10000.    
    24 'norm      '    9.4751       1.0000         .10000E-03   10000.    
    25 'norm      '    .36784       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2091       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .76307       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=   5744.246     FROM MIGRAD    STATUS=CONVERGED     90 CALLS     2943 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1048        1.0539       -.37275E-06    .43298E-03
   2  Prefactor     .10000E-03    4.0077       -.45406E-05** at limit **
   3  Prefactor     .10000E-03    2.3535        .94027E-06** at limit **
   4  Prefactor     23.572        1.2301        .71427E-06   -.24884E-02
   5  norm          1.2759        1.2906       -.32446E-06   -.86764E-04
   6  Prefactor     4.2247        1.0344        .27081E-06    .47210E-03
   7  Prefactor     .10000E-03    16.985        .22023E-04** at limit **
   8  Prefactor     .10000E-03    3.6182        .28847E-05** at limit **
   9  Prefactor     1.1307        2.3635       -.17864E-06   -.41812E-03
  10  norm          2.6957        2.1461       -.19234E-07   -.28822E-04
  11  Prefactor     .10000E-03    2.9999       -.12779E-05** at limit **
  12  Prefactor     1.2988        1.6940        .43082E-06    .44463E-04
  13  Prefactor     4.9016        2.2394        .52850E-07   -.10878E-03
  14  Prefactor     7.8515        1.0185       -.55828E-07    .75448E-04
  15  norm          1.0138        .30422       -.62302E-07    .61270E-03
  16  norm          1.8152        2.8161       -.15146E-05   -.68903E-03
  17  Prefactor     12.888        1.0025       -.36046E-07    .12547E-03
  18  Prefactor     .10001E-03    38.606       -.15721E-04** at limit **
  19  Prefactor     145.62        1.1009        .19047E-06   -.45542E-02
  20  Prefactor     .10000E-03    9.1097        .14404E-04** at limit **
  21  norm          .10000E-03    1.6369        .86214E-06** at limit **
  22  Prefactor     22.479        1.1640       -.64306E-06    .22134E-02
  23  norm          1.6245        1.4821       -.46261E-05   -.55657E-02
  24  norm          9.4824        1.2316       -.34506E-06    .54733E-03
  25  norm          .34403        1.2996        .27361E-05   -.48560E-03
  26  norm          .10001E-03    10.993       -.25079E-04** at limit **
  27  Normalizat    1.2087        .20973       -.69620E-06   -.21752E-04
  28  Prefactor     .76348        .22299        .13006E-05    .30856E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.10479
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 23.5722
  norm       = 1.2759
  Prefactor  = 4.22466
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 1.13067
  norm       = 2.69566
  Prefactor  = 0.0001
  Prefactor  = 1.29878
  Prefactor  = 4.90162
  Prefactor  = 7.85154
  norm       = 1.01378
  norm       = 1.81522
  Prefactor  = 12.8882
  Prefactor  = 0.000100007
  Prefactor  = 145.62
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 22.4786
  norm       = 1.62449
  norm       = 9.48244
  norm       = 0.34403
  norm       = 0.000100009
  Normalizat = 1.20866
  Prefactor  = 0.763476
 **********
 **   18 **HESSE 
 **********

 FCN=   5744.246     FROM HESSE     STATUS=OK           601 CALLS     3544 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1048        17.353        .35198E-02   -1.5139    
   2  Prefactor     .10000E-03    4.0452        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.2318        .29012E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.572        28.484        .20627E-02   -1.4737    
   5  norm          1.2759        1.3320        .98367E-02   -1.5482    
   6  Prefactor     4.2247        4.5149        .49024E-02   -1.5297    
   7  Prefactor     .10000E-03    17.330        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.1822        .34144E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1307        2.5912        .11003E-01   -1.5495    
  10  norm          2.6957        2.1368        .62033E-02   -1.5380    
  11  Prefactor     .10000E-03    2.9975        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.2988        1.7140        .96975E-02   -1.5480    
  13  Prefactor     4.9016        2.2524        .45421E-02   -1.5265    
  14  Prefactor     7.8515        7.2414        .35777E-02   -1.5147    
  15  norm          1.0138        .30713        .49221E-02   -1.5507    
  16  norm          1.8152        2.9123        .77504E-02   -1.5439    
  17  Prefactor     12.888        10.020        .27896E-02   -1.4990    
  18  Prefactor     .10001E-03    39.066        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     145.62        84.211        .83480E-03   -1.3289    
  20  Prefactor     .10000E-03    8.8108        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.6300        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     22.479        24.605        .21120E-02   -1.4759    
  23  norm          1.6245        3.3541        .83002E-02   -1.5453    
  24  norm          9.4824        6.2117        .32548E-02   -1.5092    
  25  norm          .34403        9.7082        .60872E-01   -1.5591    
  26  norm          .10001E-03    11.467        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2087        .18731        .52377E-01   -.86336    
  28  Prefactor     .76348        .19284        .69570E-01   -1.0109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64372e-07
Minuit parameter uncertainties:
  1  17.3635
  2  0.000132948
  3  1.39263e-06
  4  28.5001
  5  1.332
  6  4.5153
  7  0.00038876
  8  8.95461e-05
  9  2.59145
  10  2.13683
  11  4.49291e-05
  12  1.7141
  13  2.25248
  14  7.24221
  15  0.307129
  16  2.91249
  17  10.0208
  18  0.00108204
  19  84.2804
  20  0.000248907
  21  3.53787e-06
  22  24.6157
  23  3.35444
  24  6.2121
  25  3.65521
  26  0.000628647
  27  0.187418
  28  0.193012
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.815e+00  2.912e+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:  7.635e-01  1.930e-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.209e+00  1.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/734773/likelihoodResults_272764801_273024001_4FGL_J1230.2+2517_daily_bin129.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) = 5744.21600226
delta logL = 0.0302529146684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5744.21498881
delta logL = 0.0312663661653

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8765       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3596       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2022       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76700       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=   5744.215     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      209 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8812        127.79        .75991E-02    .24016E-03
   2  alpha         2.3616        3.8184        .41234        .33701E-05
   3  Normalizat    1.2017        .81394E-01    .52497E-01   -.74118E-04
   4  Prefactor     .76741        .68661E-01    .69400E-01   -.35701E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.88123
  alpha      = 2.36156
  Normalizat = 1.20174
  Prefactor  = 0.767408
 **********
 **   18 **HESSE 
 **********

 FCN=   5744.215     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8812        2.8661        .14830E-03   -1.5434    
   2  alpha         2.3616        1.4076        .30136E-01   -.55404E-01
   3  Normalizat    1.2017        .20798        .23211E-03   -.86549    
   4  Prefactor     .76741        .22322        .30708E-03   -1.0094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5383e-11
Minuit parameter uncertainties:
  1  2.86626
  2  1.49545
  3  0.208126
  4  0.223479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734773': 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) = 5744.21498432
delta logL = 0.0312708562196

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.881e+00  2.866e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.362e+00  1.495e+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:  7.674e-01  2.235e-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.202e+00  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.70
Ra Dec: 187.560 25.298

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/734773/cmap_HighResolution_272764801_273024001_4FGL_J1230.2+2517_daily_bin129.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.79e-05', job_status='DONE', photon_flux_upper_limit='6.38e-08', time_completed='2021-09-05 20:41:21.650170', job_id='734773', GAL2='0.77', fit_tolerance='1e-08', EG2='1.20', EG='1.21', time_epoch_completed='1630899681.65', return_code2='0', ts='0.70', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='3.13e-02', ts2='0.76', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='129' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:41:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 734773: <4FGL_J1230.2+2517_daily_bin129> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin129 187.56 25.2983 272764801 273024001 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 :                                   739.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             244.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            953 sec.

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

