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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin916
RA = 187.56, Dec = 25.2983
tmin = 476755201, tmax = 477014401
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='741783', job_status='RUN', time_executed='2021-09-05 20:53:34.623290', time_epoch_executed='1630900414.62' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='916'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/741783

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/741783/ft1_4FGL_J1230.2+2517_daily_bin916.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/741783/ft2_4FGL_J1230.2+2517_daily_bin916.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/741783/ft1_4FGL_J1230.2+2517_daily_bin916.fits outfile=/scratch/kocevski/741783/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin916.fits ra=187.56 dec=25.2983 rad=12.0 tmin=476755201.0 tmax=477014401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.15
user 3.31
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/741783/ft2_4FGL_J1230.2+2517_daily_bin916.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/741783/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin916.fits evtable="EVENTS" outfile="/scratch/kocevski/741783/ft1_filtered_4FGL_J1230.2+2517_daily_bin916.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.81
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/741783/ft1_filtered_4FGL_J1230.2+2517_daily_bin916.fits" evtable="EVENTS" scfile=/scratch/kocevski/741783/ft2_4FGL_J1230.2+2517_daily_bin916.fits sctable="SC_DATA" outfile=/scratch/kocevski/741783/ltcube_476755201_477014401_4FGL_J1230.2+2517_daily_bin916.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/741783/ft2_4FGL_J1230.2+2517_daily_bin916.fits
.....................!
real 15.28
user 14.78
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/741783/ft1_filtered_4FGL_J1230.2+2517_daily_bin916.fits evtable="EVENTS" scfile=/scratch/kocevski/741783/ft2_4FGL_J1230.2+2517_daily_bin916.fits sctable="SC_DATA" expcube=/scratch/kocevski/741783/ltcube_476755201_477014401_4FGL_J1230.2+2517_daily_bin916.fits outfile=/scratch/kocevski/741783/expmap_476755201_477014401_4FGL_J1230.2+2517_daily_bin916.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/741783/ltcube_476755201_477014401_4FGL_J1230.2+2517_daily_bin916.fits
.....................!
real 191.81
user 186.03
sys 5.22

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/741783/ft1_filtered_4FGL_J1230.2+2517_daily_bin916.fits scfile=/scratch/kocevski/741783/ft2_4FGL_J1230.2+2517_daily_bin916.fits outfile=/scratch/kocevski/741783/cmap_476755201_477014401_4FGL_J1230.2+2517_daily_bin916.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.60
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/741783/ft1_filtered_4FGL_J1230.2+2517_daily_bin916.fits scfile=/scratch/kocevski/741783/ft2_4FGL_J1230.2+2517_daily_bin916.fits outfile=/scratch/kocevski/741783/cmap_HighResolution_476755201_477014401_4FGL_J1230.2+2517_daily_bin916.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.57
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.020       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.4472       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.421       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0333       1.0000         .10000E-03   10000.    
    10 'norm      '    8.3517       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.921       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1545       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3436       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.0100       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.0780       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .79394E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.9321       1.0000         .10000E-03   10000.    
    23 'norm      '    .13561E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    1.2465       1.0000         .10000E-03   10000.    
    25 'norm      '    .11000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3551       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .68666       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=   6849.712     FROM MIGRAD    STATUS=CONVERGED    693 CALLS     3567 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.018        22.379        .52060E-06   -.14923E-04
   2  Prefactor     .10000E-03    4.3649       -.12629E-07** at limit **
   3  Prefactor     .10000E-03    .54701       -.62886E-08** at limit **
   4  Prefactor     .10000E-03    13.025        .73419E-07** at limit **
   5  norm          4.4474        1.5040        .45775E-07   -.55641E-04
   6  Prefactor     .10000E-03    1.0951        .37003E-09** at limit **
   7  Prefactor     20.411        29.701       -.25204E-05   -.36798E-04
   8  Prefactor     .10000E-03    1.7461       -.15280E-06** at limit **
   9  Prefactor     2.0332        3.0222        .23156E-07   -.32895E-04
  10  norm          8.3520        4.5057        .50278E-07   -.38078E-04
  11  Prefactor     10.923        8.1745        .24339E-06   -.22496E-04
  12  Prefactor     4.1546        3.4085        .30387E-07   -.26602E-04
  13  Prefactor     4.3437        2.6519        .56572E-07   -.47994E-04
  14  Prefactor     .10000E-03    1.5109        .21558E-07** at limit **
  15  norm          .10000E-03    .48899E-01   -.24982E-08** at limit **
  16  norm          9.0104        4.4021        .13838E-06   -.91842E-05
  17  Prefactor     5.0783        6.1060        .26536E-07   -.12472E-04
  18  Prefactor     .10000E-03    47.560        .24897E-05** at limit **
  19  Prefactor     .10000E-03    18.625       -.64893E-06** at limit **
  20  Prefactor     .10000E-03    6.7490       -.23029E-07** at limit **
  21  norm          .10027E-03    2.6327        .74276E-06** at limit **
  22  Prefactor     3.9744        35.711        .10517E-05   -.31784E-04
  23  norm          .10005E-03    1.7402       -.28927E-06** at limit **
  24  norm          1.2459        3.3593        .14560E-05    .46101E-03
  25  norm          .10000E-03    4.8042       -.12762E-05** at limit **
  26  norm          .10000E-03    5.4736       -.37326E-08** at limit **
  27  Normalizat    1.3548        .18317       -.19914E-05    .64442E-04
  28  Prefactor     .68688        .17770        .11709E-05   -.80895E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.0182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.44735
  Prefactor  = 0.0001
  Prefactor  = 20.4111
  Prefactor  = 0.0001
  Prefactor  = 2.03319
  norm       = 8.35196
  Prefactor  = 10.9226
  Prefactor  = 4.15461
  Prefactor  = 4.34367
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.01043
  Prefactor  = 5.07825
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100265
  Prefactor  = 3.97438
  norm       = 0.000100052
  norm       = 1.24593
  norm       = 0.000100001
  norm       = 0.0001
  Normalizat = 1.35484
  Prefactor  = 0.68688
 **********
 **   18 **HESSE 
 **********

 FCN=   6849.712     FROM HESSE     STATUS=OK           527 CALLS     4094 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.018        22.405        .94350E-04   -1.4859    
   2  Prefactor     .10000E-03    4.3908        .16887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .55118        .59709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.4474        1.5010        .55895E-04   -1.5286    
   6  Prefactor     .10000E-03    1.1006        .84561E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.411        29.260        .88633E-04   -1.4804    
   8  Prefactor     .10000E-03    1.7767        .21220E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.0332        2.9948        .16474E-03   -1.5423    
  10  norm          8.3520        4.5403        .10479E-03   -1.5130    
  11  Prefactor     10.923        8.1701        .12123E-03   -1.5047    
  12  Prefactor     4.1546        3.4278        .11371E-03   -1.5300    
  13  Prefactor     4.3437        2.6415        .97602E-04   -1.5291    
  14  Prefactor     .10000E-03    1.5129        .99337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .51511E-01    .35622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.0104        4.3953        .11686E-03   -1.5108    
  17  Prefactor     5.0783        6.1002        .17843E-03   -1.5257    
  18  Prefactor     .10000E-03    47.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.8952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10027E-03    26.182        .22852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.9744        36.178        .20344E-03   -1.5309    
  23  norm          .10005E-03    18.078        .20788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.2459        3.3466        .23428E-03   -1.5485    
  25  norm          .10000E-03    12.966        .31597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    5.4768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3548        .20595        .22677E-03   -.81944    
  28  Prefactor     .68688        .20420        .32047E-03   -1.0404    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29657e-08
Minuit parameter uncertainties:
  1  22.4151
  2  3.19253e-06
  3  6.71781e-07
  4  1.90667e-05
  5  1.50098
  6  1.9575e-06
  7  29.2807
  8  7.0667e-06
  9  2.99501
  10  4.54049
  11  8.17096
  12  3.42796
  13  2.64158
  14  9.52559e-07
  15  3.40972e-07
  16  4.39548
  17  6.1009
  18  0.000129856
  19  1.4691e-05
  20  1.99046e-05
  21  0.00527149
  22  24.0009
  23  0.00194185
  24  3.34706
  25  0.000203366
  26  2.27313e-06
  27  0.206077
  28  0.204421
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  9.010e+00  4.395e+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:  6.869e-01  2.044e-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.355e+00  2.061e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.34
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 5.29e-08 +/- 2.58e-08
Energy Flux (Fixed Index): 3.15e-05 +/- 1.54e-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) = 6849.71199101
delta logL = 2.51941492024e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6849.71199096
delta logL = 2.57113242697e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.0104       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0019       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3548       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68687       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6849.712     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      228 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.0101        4.3944        .11684E-03    .30405E-02
   2  alpha         2.0020        .45487        .12345E-01    .28833E-03
   3  Normalizat    1.3548        .19663        .22677E-03   -.20905E-04
   4  Prefactor     .68693        .20373        .32046E-03   -.12796E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.01009
  alpha      = 2.00198
  Normalizat = 1.35477
  Prefactor  = 0.686925
 **********
 **   18 **HESSE 
 **********

 FCN=   6849.712     FROM HESSE     STATUS=OK            23 CALLS      251 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.0101        4.3868        .23367E-04   -1.5108    
   2  alpha         2.0020        .45393        .49379E-03   -.20055    
   3  Normalizat    1.3548        .19674        .45355E-04   -.81946    
   4  Prefactor     .68693        .20385        .12818E-04   -1.0404    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61527e-09
Minuit parameter uncertainties:
  1  4.38694
  2  0.45657
  3  0.196845
  4  0.204075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/741783': 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) = 6849.71199092
delta logL = 2.6096122383e-06

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  9.010e+00  4.387e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.002e+00  4.566e-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:  6.869e-01  2.041e-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.355e+00  1.968e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.32
Ra Dec: 187.560 25.298
Photon Index (Free Index): 2.00 +/- 0.46
Photon Flux (Free Index): 5.30e-08 +/- 3.56e-08
Energy Flux (Free Index): 3.14e-05 +/- 2.03e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/741783/cmap_HighResolution_476755201_477014401_4FGL_J1230.2+2517_daily_bin916.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.29e-08', energy_flux2='3.14e-05', photon_flux_error='2.58e-08', dlogl='2.61e-06', energy_flux='3.15e-05', photon_flux2='5.30e-08', job_status='DONE', time_completed='2021-09-05 21:06:06.680673', photon_index_error2='0.46', photon_index2='2.00', ts='15.34', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='2.03e-05', EG='1.35', time_epoch_completed='1630901166.68', return_code='0', job_id='741783', GAL2='0.69', EG2='1.35', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='3.56e-08', ts2='15.32', photon_index='2.00' WHERE bin_id='916' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:06:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 741783: <4FGL_J1230.2+2517_daily_bin916> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin916 187.56 25.2983 476755201 477014401 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 :                                   750.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            942 sec.

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

